Python 49th Day--paramiko module installation Big battle

Source: Internet
Author: User

Ready to start Learning: Paramiko module, found this module is very difficult to install

Engaged for a half day, Win10 64 Pytyon 3.6 of the Paramiko module is not on, on-line constantly looking for information, but no use, no use AH

Can't, use virtual machine to make a centos7, install, fail, install again, fail again, surf the net to find information, finally fix, share experience, lest everybody step on the pit again.

Environment CentOS 7, comes with Python 2.7, don't care about it

Install new Python3

First step: Download the python3.5 installation package:

wget--no-check-certificate https://www.python.org/ftp/python/3.5.0/Python-3.5.0.tgz

Unzip to current directory:

TAR-ZXVF python-3.5.0.tgz

Enter

CD Python-3.5.0

Installation

./configure--prefix=/usr/local/python3.5--enable-shared

Make & make Install

If

When you run the Python3 command, you will get an error and the. So file is missing, we need to do the following:

Cp-r/usr/local/python3.5/lib/*/usr/lib64/

Ok! The Python3 base environment is now installed

Step Two: Install the following modules

Make sure that the subsequent installation is no longer error

Yum install gcc libffi-devel python-devel openssl-devel

Reprinted from:

http://blog.csdn.net/fenglifeng1987/article/details/38057193

Step Three: Install Setuptools

wget--no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-19.6.tar.gz#md5= C607dd118eae682c44ed146367a17e26

TAR-ZXVF setuptools-19.6.tar.gz

CD setuptools-19.6

Python3 setup.py Build

Python3 setup.py Install

If

Error: Runtimeerror:compression requires the (missing) zlib module

We need to install the Zlib-devel package in Linux for support.

Yum Install Zlib-devel

A recompile installation is required for the python3.5.

CD python3.5

Make & make Install

Reinstall Setuptools

Python3 setup.py Build

Python3 setup.py Install

After installing Setuptools, you need to recompile the python3.5 installation.

Fourth Step install Pip

wget--no-check-certificate https://pypi.python.org/packages/source/p/pip/pip-8.0.2.tar.gz#md5= 3a73c4188f8dbad6a1e6f6d44d117eeb

TAR-ZXVF pip-8.0.2.tar.gz

CD pip-8.0.2

Python3 setup.py Build

Python3 setup.py Install

If there is no accident, PIP installation is complete.

Fifth Step installation Paramiko

To install a Paramiko using PIP:

python3-m pip Install Paramiko

OK, finally completed the Paramiko installation of the PYTHON3 environment.

Reprinted from:

Http://www.tuicool.com/articles/j2ueiir

Well, the Windows edition continues to study ...

Python 49th Day--paramiko module installation Big battle

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.