官术网_书友最值得收藏!

Installating Paramiko

Installating Paramiko is pretty straight forward with PIP. However, there is a hard dependency on the Cryptography library. The library provides the low-level, C-based encryption algorithms for the SSH protocol.

The installation instruction for Windows, Mac, and other flavors of Linux can be found https://cryptography.io/en/latest/installation/

We will show the installation for our Ubuntu 16.04 virtual machine in the following output. The following output shows the installation steps as well as Paramiko successfully imported in the Python interactive prompt.

Python 2:

sudo apt-get install build-essential libssl-dev libffi-dev python-dev
sudo pip install cryptography
sudo pip install paramiko
$ python
Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import paramiko
>>> exit()

Python 3:

sudo apt-get install build-essential libssl-dev libffi-dev python3-dev
sudo pip3 install cryptography
sudo pip3 install paramiko
$ python3
Python 3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import paramiko
>>>
主站蜘蛛池模板: 临泉县| 扶余县| 腾冲县| 道真| 安阳市| 吴忠市| 建阳市| 博客| 安阳市| 若尔盖县| 白城市| 壶关县| 德惠市| 乃东县| 社旗县| 沿河| 伊春市| 四平市| 苏尼特左旗| 巩义市| 肃南| 富平县| 芜湖县| 古交市| 乐陵市| 永川市| 阿勒泰市| 文成县| 伊川县| 治县。| 二手房| 汕头市| 罗甸县| 虹口区| 漯河市| 遂川县| 淄博市| 建瓯市| 武冈市| 卫辉市| 临湘市|