由于 CryptographyDeprecationWarning,无法使用 pip install/uninstall
Unable to install/uninstall with pip due to CryptographyDeprecationWarning
我在安装 pip3 和 pip 时收到此警告
/usr/lib/python3/dist-packages/secretstorage/dhcrypto.py:15: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
from cryptography.utils import int_from_bytes
/usr/lib/python3/dist-packages/secretstorage/util.py:19: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
from cryptography.utils import int_from_bytes
我看过这个 post (),但是升级密码系统不起作用。出现相同的警告。
我试过 pip -v 和 pip3 -v,它们工作正常。我也重新安装了 pip,但没有奇迹发生。
编辑以供将来参考:
几分钟后它现在正确升级了模块,但我仍然不确定为什么花了这么长时间。
为了解决这个问题,安装密码学版本 3.3.2
pip install cryptography==3.3.2
我在安装 pip3 和 pip 时收到此警告
/usr/lib/python3/dist-packages/secretstorage/dhcrypto.py:15: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
from cryptography.utils import int_from_bytes
/usr/lib/python3/dist-packages/secretstorage/util.py:19: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
from cryptography.utils import int_from_bytes
我看过这个 post (
我试过 pip -v 和 pip3 -v,它们工作正常。我也重新安装了 pip,但没有奇迹发生。
编辑以供将来参考:
几分钟后它现在正确升级了模块,但我仍然不确定为什么花了这么长时间。
为了解决这个问题,安装密码学版本 3.3.2
pip install cryptography==3.3.2