centos 7.9上python3.6使用ansible报Python 3.6 is no longer supported错解决
centos 7.9上python3.6使用ansible报错解决/usr/local/lib/python3.6/site-packages/ansible/parsing/vault/__init__.py:44: CryptographyDeprecationWarning:
·
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版本
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
更多推荐
已为社区贡献3条内容
所有评论(0)