安装Python3与paramiko模块
1. 源码包下载
https://www.python.org/ftp/python/3.4.5/Python-3.4.5.tar.xz
或百度网盘:链接:https://pan.baidu.com/s/1VyUcd6GOp4PoZM9_yHX6Uw 提取码:fpzs
2. 安装相关依赖
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make
3. 安装
tar -xzvf Python 3.4.5.tar cd Python 3.4.5 ./configure --prefix=/usr/local/python3 make && make install
4. 建立软链接
ln -s /usr/local/python3/bin/python3 /usr/bin/python3
5. 报错 ModuleNotFoundError : No module named 'paramiko'
5.1 下载安装包
或百度网盘:链接:https://pan.baidu.com/s/1jDg35xpQ6elChVHMljavOQ 提取码:2wps
5.2 安装
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 导入模块
posted on 2019-05-29 10:30 seabiscuit0922 阅读(478) 评论(0) 编辑 收藏 举报