简体   繁体   English

当我使用 pycharm 在 django 项目中安装加密时,出现错误。 密码学构建轮失败

[英]While I am installing cryptography in django project using pycharm, I got the error. Failed building wheel for cryptography

While I am installing cryptography got the following error.当我安装加密时出现以下错误。

Failed building wheel for cryptography
Running setup.py clean for cryptography
Failed to build cryptography
Could not build wheels for cryptography which use PEP 517 and cannot be installed directly

i was have same problem我有同样的问题

my config was : python==3.7 django==2.2 pip==19.0.3我的配置是: python==3.7 django==2.2 pip==19.0.3

and its not from pycharm它不是来自pycharm

its from pip它来自pip

just upgrade pip to 21.0.1只需将pip升级到21.0.1

  • Update:更新:

some error code:一些错误代码:

running build_rust

=============================DEBUG ASSISTANCE=============================
If you are seeing a compilation error please try the following steps to
successfully install cryptography:
1) Upgrade to the latest pip and try again. This will fix errors for most
users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
2) Read https://cryptography.io/en/latest/installation.html for specific
instructions for your platform.
3) Check our frequently asked questions for more information:
https://cryptography.io/en/latest/faq.html
4) Ensure you have a recent Rust toolchain installed:
https://cryptography.io/en/latest/installation.html#rust
5) If you are experiencing issues with Rust for *this release only* you may
set the environment variable `CRYPTOGRAPHY_DONT_BUILD_RUST=1`.
=============================DEBUG ASSISTANCE=============================


error: Can not find Rust compiler

----------------------------------------
Running setup.py clean for cryptography
Failed to build cryptography

Failed building wheel for cryptography
Could not build wheels for cryptography which use PEP 517 and cannot be installed directly

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM