由于加密驱动器的加密而无法与PIP安装/卸载

发布于 2025-01-20 22:54:18 字数 802 浏览 1 评论 0原文

我在使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦回梦里 2025-01-27 22:54:18

为了解决此问题,请安装密码图版本3.3.2

pip install cryptography==3.3.2

In order to solve this, install cryptography version 3.3.2

pip install cryptography==3.3.2
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文