首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >.cffi=‘cffi 3’>安装错误-argon2建造车轮(PEP 517)错误

.cffi=‘cffi 3’>安装错误-argon2建造车轮(PEP 517)错误
EN

Stack Overflow用户
提问于 2020-10-07 02:45:13
回答 7查看 29.5K关注 0票数 20
代码语言:javascript
复制
Building wheels for collected packages: argon2-cffi
  Building wheel for argon2-cffi (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:\users\prasa\appdata\local\programs\python\python39\python.exe' 'c:\users\prasa\appdata\local\programs\python\python39\lib\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'C:\Users\prasa\AppData\Local\Temp\tmpcczeigwt'
       cwd: C:\Users\prasa\AppData\Local\Temp\pip-install-iele2h25\argon2-cffi
  Complete output (17 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.9
  creating build\lib.win-amd64-3.9\argon2
  copying src\argon2\exceptions.py -> build\lib.win-amd64-3.9\argon2
  copying src\argon2\low_level.py -> build\lib.win-amd64-3.9\argon2
  copying src\argon2\_ffi_build.py -> build\lib.win-amd64-3.9\argon2
  copying src\argon2\_legacy.py -> build\lib.win-amd64-3.9\argon2
  copying src\argon2\_password_hasher.py -> build\lib.win-amd64-3.9\argon2
  copying src\argon2\_utils.py -> build\lib.win-amd64-3.9\argon2
  copying src\argon2\__init__.py -> build\lib.win-amd64-3.9\argon2
  copying src\argon2\__main__.py -> build\lib.win-amd64-3.9\argon2
  running build_clib
  building 'argon2' library
  error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
  ----------------------------------------
  ERROR: Failed building wheel for argon2-cffi
Failed to build argon2-cffi
ERROR: Could not build wheels for argon2-cffi which use PEP 517 and cannot be installed directly

我在我的电脑上安装了python3.9。当我试图安装jupyter笔记本时,我得到了这个错误。那么如何解决这个问题呢?

EN

回答 7

Stack Overflow用户

回答已采纳

发布于 2021-09-28 20:42:21

如果mac用户在Intel CPU上,只要检查您的pip版本,如果您是通过以下命令安装的:

代码语言:javascript
复制
pip install notebook

升级您的PIP,为我工作的命令:

代码语言:javascript
复制
/Library/Developer/CommandLineTools/usr/bin/python3 -m pip install --upgrade pip

使用命令检查它是否是PIP的最新版本:

代码语言:javascript
复制
pip --version

在此之后,再次尝试:

代码语言:javascript
复制
pip install notebook

这一次您不应该看到任何错误。

然后在path变量中包括~/Library/Python/3.8/bin。通过以下方式检查是否在那里:

代码语言:javascript
复制
echo $PATH

然后通过命令启动jupyter笔记本:

代码语言:javascript
复制
jupyter notebook
票数 14
EN

Stack Overflow用户

发布于 2020-10-10 16:35:08

我和你有同样的问题。我就是这样解决的。

我在这里找到了答案:https://discuss.codecademy.com/t/having-trouble-installing-jupyter-notebooks/537292/2

如果您愿意,可以使用该链接并按照说明进行操作。我也会在这里告诉你怎么做。

这是个简单的解决办法。此错误是由于MicrosoftVisualC++已过时。在错误中,它将为您提供更新的链接。

代码语言:javascript
复制
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

转到https://visualstudio.microsoft.com/visual-cpp-build-tools/,点击‘下载构建工具’并安装它。

一旦安装完毕,您就会看到一些选择。选择'C++构建工具‘并安装它。完成后重新启动计算机。然后运行pip install jupyter,您应该会很好!

票数 7
EN

Stack Overflow用户

发布于 2021-11-19 10:54:04

当我调用python 3.7.5时,我遇到了这个问题

代码语言:javascript
复制
pip install jupyter

解决办法是先打电话

代码语言:javascript
复制
pip install argon2-cffi==20.1.0 

然后打电话

代码语言:javascript
复制
  pip install jupyter

我认为这个错误存在于最新版本的argon2-cffi中。它是21.1.0 https://pypi.org/project/argon2-cffi/21.1.0/#history

票数 7
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64236463

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档