前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >[1148]python3.6使用ansible报Python 3.6 is no longer supported错

[1148]python3.6使用ansible报Python 3.6 is no longer supported错

作者头像
周小董
发布2022-06-29 13:38:01
2.5K0
发布2022-06-29 13:38:01
举报
文章被收录于专栏:python前行者python前行者
代码语言:javascript
复制
ansible --version
/usr/local/lib/python3.6/site-packages/ansible/parsing/vault/__init__.py:44: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release.
  from cryptography.exceptions import InvalidSignature
ansible [core 2.11.12]

解决:卸载 cryptography(37.0.2版本)后重新安装36.0.2版本

代码语言:javascript
复制
pip3 uninstall cryptography
Found existing installation: cryptography 37.0.2
Uninstalling cryptography-37.0.2:
  Would remove:
    /usr/local/lib64/python3.6/site-packages/cryptography-37.0.2.dist-info/*
    /usr/local/lib64/python3.6/site-packages/cryptography/*
Proceed (Y/n)? y
  Successfully uninstalled cryptography-37.0.2
 
 
pip3 install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com  cryptography==36.0.2

参考:https://blog.csdn.net/sjwbcb/article/details/125161095

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2022-06-28,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档