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

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
>>>
主站蜘蛛池模板: 长葛市| 鄄城县| 厦门市| 襄城县| 呼伦贝尔市| 苍山县| 宿州市| 车致| 深圳市| 承德县| 仙桃市| 搜索| 巩义市| 江华| 拉孜县| 左权县| 大渡口区| 武安市| 全椒县| 云龙县| 松原市| 咸阳市| 江华| 二手房| 自治县| 平陆县| 衡阳市| 洛隆县| 普洱| 新邵县| 广东省| 江北区| 盐源县| 海南省| 永川市| 鱼台县| 忻城县| 蓬莱市| 舞钢市| 莱州市| 大石桥市|