/usr/lib64/python2.6/site-packages/cryptography/__init__.py:26: DeprecationWarning: Python 2.6 is no longer supported by the Python core team


 

 

 

升级python2.6到2.7后,执行ansible后一直显示警告,如标题所示。

因为安装ansible,使用的是yum的方式,而yum使用的是python2.6,所以ansible安装环境为python2.7

解决方式:

卸载安装的ansible,使用pip(python2.7)重新安装ansible即可


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM