由于加密驱动器的加密而无法与PIP安装/卸载
我在使用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
我已经看过这篇文章(我不能导入任何python模块,也不能使用PIP安装任何模块),但是升级的加密摄影无法正常工作。同样的警告出现。
我尝试了PIP -V和PIP3 -V,它们工作正常。我也重新安装了PIP,但没有魔术发生。
编辑未来参考:
几分钟后,它现在正确地升级了模块,我仍然不确定为什么花了这么长时间。
I get this warning when installing with both pip3 and 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
I've seen this post (I cant import any python modules, and cant install any modules with pip either), but upgrading cryptography doesn't work. Same warning come up.
I've tried pip -v and pip3 -v, they works fine. I've also reinstalled pip, but no magic happens.
Edit for future reference:
It correctly upgrade the module now after a few minutes, tho i'm still not sure why it took so long.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为了解决此问题,请安装密码图版本3.3.2
In order to solve this, install cryptography version 3.3.2