安装 paramiko 遇到 /usr/lib64/python2.6/site-packages/cryptography-1.8.1-py2.6-linux-x86_64.egg/cryptography/__init__.py:26
作者:
leo
场景:
安装paramiko 时最后提示安装成功
Using /usr/lib64/python2.6/site-packages/pyparsing-2.2.0-py2.6.egg
Finished processing dependencies for paramiko==2.3.1
测试paramiko 是否可用,发现报如下错误:
>>> import paramiko
/usr/lib64/python2.6/site-packages/cryptography-1.8.1-py2.6-linux-x86_64.egg/cryptography/__init__.py:26: DeprecationWarning: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of cryptography will drop support for Python 2.6
DeprecationWarning
解决方法:
卸载安装的ansible,重新安装ansible即可
因为测试环境没有ansible包,所以下面直接安装ansible包
yum -y install ansible
[root@www.cndba.cn ~]# python
Python 2.6.6 (r266:84292, Aug 18 2016, 15:13:37)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import paramiko
>>>
版权声明:本文为博主原创文章,未经博主允许不得转载。
- 上一篇:查看 MySQL 字符集的方法
- 下一篇:安装 Mysql 示例数据库sakila