程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

[1148]python 3.6 uses ansible to report Python 3.6 is no longer supported error

編輯:Python
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]

solve : uninstall cryptography(37.0.2 edition ) And then reinstall 36.0.2 edition

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

Reference resources :https://blog.csdn.net/sjwbcb/article/details/125161095


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved