Operating System Version: rhel6.5
Python Version: 2.7 (rhel6.5 default comes with the 2.6 version is too old)
1, install python2.7
Download from the Python-2.7.17.tgz https://www.python.org/downloads/release/python-2717/ extracting tar -zxvf Python-2.7.17.tgz mounted CD the Python-2.7.17 ./configure the make the make install
after the installation can Python2 into the environment, the system comes with a python, you can delete and replace with a soft connection
2, the installation dependencies pycrypto
Downloaded from https://pypi.org/search/ dependencies pycrypto extracting tar -zxvf pycrypto-2.6.1.tar.gz mounted CD-pycrypto 2.6.1 ./configure python2 setup.py the install
3, the installation dependencies ecdsa
From https://pypi.org/search/ dependencies ecdsa-0.13.tar.gz download codecs tar -zxvf ecdsa-0.13.tar.gz mounted CD-ECDSA 0.13 python2 setup.py the install
4, installation paramiko
Downloaded from https://pypi.org/search/ dependencies paramiko extracting tar -zxvf paramiko-1.15.3.tar.gz mounted CD-1.15.3 paramiko python2 setup.py the install
5. Verify
[root@ty14166 paramiko-1.15.3]# python2 Python 2.7.17 (default, Mar 28 2020, 15:18:10) [GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import paramiko >>>
success!