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

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
>>>
主站蜘蛛池模板: 无锡市| 木兰县| 缙云县| 遵化市| 山丹县| 南康市| 涟水县| 乐都县| 平乐县| 石家庄市| 尼勒克县| 工布江达县| 桑日县| 孙吴县| 同心县| 山东省| 白银市| 绥滨县| 昌江| 长治县| 青神县| 海林市| 北安市| 长宁区| 防城港市| 肃北| 如皋市| 新乡县| 上思县| 凤庆县| 浪卡子县| 仁怀市| 汉阴县| 马龙县| 荣成市| 达州市| 阳新县| 泰安市| 永康市| 双江| 方城县|