CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. win10 django

vx_guanchaoguo0發表於2024-12-04

警告

CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.
                        

低版本

pip install cryptography==2.6

可能不適配

ERROR: pyopenssl 19.1.0 has requirement cryptography>=2.8, but you'll have cryptography 2.6 which is incompatible.
ERROR: aliyun-python-sdk-core 2.15.2 has requirement cryptography>=3.0.0, but you'll have cryptography 2.6 which is incompatible.
Installing collected packages: cryptography
  Found existing installation: cryptography 3.3.2
    Uninstalling cryptography-3.3.2:
      Successfully uninstalled cryptography-3.3.2
ERROR: Could not install packages due to an EnvironmentError: [Error 5] : 'c:\\programdata\\anaconda3\\envs\\washpayer\\lib\\site-packages\\~ryptography\\hazmat\\bindings\\_openssl.pyd'
Consider using the `--user` option or check the permissions.

相關文章