简体   繁体   English

Jupyter Notebook 安装错误 - 为 argon2-cffi (PEP 517) 构建轮子......错误

[英]Jupyter Notebook installation error - Building wheel for argon2-cffi (PEP 517) ... error

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

I installed python 3.9 on my computer.我在我的电脑上安装了 python 3.9。 When I try to install jupyter notebook I got this error.当我尝试安装 jupyter notebook 时出现此错误。 SO how to solve this issue ?那么如何解决这个问题?

I had the exact same issue as you.我和你有完全相同的问题。 This is how I solved it.我就是这样解决的。

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

You can use the link and follow the instructions if you'd like.如果您愿意,您可以使用该链接并按照说明进行操作。 I'll also tell you how to do it here.我也会在这里告诉你怎么做。

It's an easy fix.这是一个简单的修复。 The error is about the Microsoft Visual C++ being out of date.该错误是关于 Microsoft Visual C++ 已过期。 In the error it gives you the link for the update.在错误中,它为您提供了更新链接。

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/

Go to https://visualstudio.microsoft.com/visual-cpp-build-tools/ and click 'Download Build Tools' and install it.转到https://visualstudio.microsoft.com/visual-cpp-build-tools/并单击“下载构建工具”并安装它。

Once it's installed, you'll see a few choices.安装后,您会看到一些选择。 Select 'C++ build tools' and install it.选择“C++ 构建工具”并安装它。 Restart your computer after it's done.完成后重新启动计算机。 Then run pip install jupyter and you should be good!然后运行pip install jupyter可以了!

In case if other people have problem and in their case that will work.如果其他人有问题,并且在他们的情况下会起作用。

In my case I used:就我而言,我使用了:

py -3.8 -m pip install pyautogui

That gave me respond:这给了我回应:

Python 3.8 not found!
Installed Pythons found by C:\Windows\py.exe Launcher for Windows
 -3.9-64 *
 -3.7-64

So after I installed Python 3.8 once again used:所以在我安装 Python 3.8 后再次使用:

py -3.8 -m pip install pyautogui

Result:结果:

Successfully installed PyTweening-1.0.3 mouseinfo-0.1.3 pyautogui-0.9.52 pygetwindow-0.0.9 pymsgbox-1.0.9 pyperclip-1.8.1 pyrect-0.1.4 pyscreeze-0.

由于错误表明您需要下载Microsoft Visual C++ 14.0 或更高版本

PS The wheel is added now PS现在添加了轮子

Microsoft Visual C++ 14.2 standalone: Build Tools for Visual Studio 2019 (x86, x64, ARM, ARM64) Microsoft Visual C++ 14.2 独立版:Visual Studio 2019 构建工具(x86、x64、ARM、ARM64)

This is a standalone version of Visual C++ 14.2 compiler, you don't need to install Visual Studio 2019.这是 Visual C++ 14.2 编译器的独立版本,您无需安装 Visual Studio 2019。

Build Tools also allows us to install any previous Visual C++ 14 version (Including 2015, 2017 ones). Build Tools 还允许我们安装任何以前的 Visual C++ 14 版本(包括 2015、2017 版本)。

Source 来源

1.11 GB Download size; 1.11 GB 下载大小; Space 4.4 GB空间 4.4 GB

argon2-cffi现在正在为 Windows 提供 Python 3.9 轮子,这应该可以解决您的安装问题。

In case of mac user on Intel CPUs, just check your pip version, if you are installing through the command :如果是 Intel CPU 上的 mac 用户,只需检查您的 pip 版本,如果您是通过以下命令安装:

pip install notebook

Upgrade your PIP, the command that worked for me:升级您的 PIP,对我有用的命令:

/Library/Developer/CommandLineTools/usr/bin/python3 -m pip install --upgrade pip

Check if its the latest version of PIP , by using command :使用命令检查它是否是最新版本的 PIP :

pip --version

After this again, try :在此之后,再次尝试:

pip install notebook

This time you should not see any error.这次您应该不会看到任何错误。

Then include ~/Library/Python/3.8/bin in your path variable.然后在路径变量中包含 ~/Library/Python/3.8/bin 。 Check if its there by :检查它是否在那里:

echo $PATH

And then launch the jupyter notebook by command :然后通过命令启动 jupyter notebook:

jupyter notebook

I had this problem on python 3.7.5 when I called当我打电话时,我在 python 3.7.5 上遇到了这个问题

pip install jupyter

The solution was to first call解决办法是先调用

pip install argon2-cffi==20.1.0 

And then call然后打电话

  pip install jupyter

I think the error is present in the newest version of argon2-cffi.我认为该错误存在于最新版本的 argon2-cffi 中。 Which is 21.1.0 https://pypi.org/project/argon2-cffi/21.1.0/#history这是 21.1.0 https://pypi.org/project/argon2-cffi/21.1.0/#history

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

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