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

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
>>>
主站蜘蛛池模板: 偃师市| 肥城市| 赣州市| 雷州市| 抚顺市| 淮滨县| 拜泉县| 冷水江市| 虹口区| 阳春市| 昌江| 诸城市| 堆龙德庆县| 施甸县| 唐山市| 万荣县| 奉贤区| 确山县| 玉山县| 永修县| 额敏县| 彰化县| 津南区| 东乡| 景泰县| 巴林右旗| 凤台县| 华安县| 都昌县| 山阴县| 红桥区| 神木县| 福泉市| 京山县| 铁岭市| 平顶山市| 葫芦岛市| 本溪| 济源市| 哈巴河县| 县级市|