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://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 導入模塊