安裝Python3與paramiko模塊

1. 源碼包下載python

https://www.python.org/ftp/python/3.4.5/Python-3.4.5.tar.xzsql

或百度網盤:連接:https://pan.baidu.com/s/1VyUcd6GOp4PoZM9_yHX6Uw  提取碼:fpzsspa

2. 安裝相關依賴code

yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make

3. 安裝sqlite

tar -xzvf Python 3.4.5.tar
cd Python 3.4.5
./configure --prefix=/usr/local/python3
make && make install

4. 創建軟連接blog

ln -s /usr/local/python3/bin/python3 /usr/bin/python3

5. 報錯 ModuleNotFoundError : No module named 'paramiko'ip

5.1 下載安裝包md5

https://pypi.python.org/packages/source/p/paramiko/paramiko-1.14.0.tar.gz#md5=e26324fd398af68ad506fe98853835c3ssl

或百度網盤:連接:https://pan.baidu.com/s/1jDg35xpQ6elChVHMljavOQ 提取碼:2wps
5.2 安裝get

tar -xzf paramiko-1.14.0.tar.gz
cd paramiko-1.14.0
python setup.py install

5.3 安裝完成後進入到demos目錄中運行以下命令檢測安裝結果:

python demo.py localhost

5.4 導入模塊

相關文章
相關標籤/搜索