- Mastering Python Networking
- Eric Chou
- 169字
- 2021-07-02 21:42:36
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
>>>
推薦閱讀
- 一步一步學(xué)Spring Boot 2:微服務(wù)項目實戰(zhàn)
- MATLAB圖像處理超級學(xué)習(xí)手冊
- Mastering Entity Framework
- PostgreSQL技術(shù)內(nèi)幕:事務(wù)處理深度探索
- Web開發(fā)的貴族:ASP.NET 3.5+SQL Server 2008
- 深入淺出PostgreSQL
- Learning OpenStack Networking(Neutron)
- Principles of Strategic Data Science
- Ext JS 4 Plugin and Extension Development
- 會當(dāng)凌絕頂:Java開發(fā)修行實錄
- Python程序設(shè)計:基礎(chǔ)與實踐
- 生成藝術(shù):Processing視覺創(chuàng)意入門
- PyTorch生成對抗網(wǎng)絡(luò)編程
- Visual Basic程序設(shè)計
- Mastering Chef Provisioning