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
我在我的电脑上安装了 python 3.9。当我尝试安装 jupyter notebook 时出现此错误。那么如何解决这个问题?
由于报错提示需要下载Microsoft Visual C++ 14.0 or greater.
我遇到了和你完全一样的问题。我就是这样解决的。
我在这里找到了答案:https://discuss.codecademy.com/t/having-trouble-installing-jupyter-notebooks/537292/2
您可以使用 link 并根据需要按照说明进行操作。我也会在这里告诉你如何做。
这很容易解决。该错误与 Microsoft Visual C++ 过时有关。在错误中,它为您提供了更新的 link。
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/ 并单击 'Download Build Tools' 并安装它。
安装完成后,您会看到一些选择。 Select 'C++ build tools' 并安装它。完成后重新启动计算机。那么运行pip install jupyter
你应该就不错了!
万一其他人有问题,在他们的情况下会起作用。
在我的例子中,我使用了:
py -3.8 -m pip install pyautogui
这给了我回应:
Python 3.8 not found!
Installed Pythons found by C:\Windows\py.exe Launcher for Windows
-3.9-64 *
-3.7-64
于是我安装了Python3.8后再次使用:
py -3.8 -m pip install pyautogui
结果:
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.
P.S. 现在添加The wheel
Microsoft Visual C++ 14.2 独立版:Visual Studio 2019 的构建工具(x86、x64、ARM、ARM64)
这是独立版的Visual C++ 14.2编译器,不需要安装Visual Studio 2019.
-
在Build tools中,安装C++ build tools,确保是最新的
MSVCv142 版本 - VS 2019 C++ x64/x86 构建工具和 Windows 10
已检查 SDK。
setuptools Python 包版本必须至少为 34.4.0。
Build Tools 还允许我们安装任何以前的 Visual C++ 14 版本(包括 2015、2017 版本)。
1.11 GB 下载大小; Space4.4GB
argon2-cffi
现在为 Windows 运送 Python 3.9 车轮,这应该可以解决您的安装问题。
如果 mac 用户使用 Intel CPU,请检查您的 pip 版本,如果您是通过以下命令安装的:
pip install notebook
升级你的 PIP,对我有用的命令:
/Library/Developer/CommandLineTools/usr/bin/python3 -m pip install --upgrade pip
检查它是否是最新版本的 PIP,使用命令:
pip --version
再次尝试:
pip install notebook
这次你应该看不到任何错误。
然后在路径变量中包含 ~/Library/Python/3.8/bin。
通过 :
检查它是否存在
echo $PATH
然后通过命令启动 jupyter notebook :
jupyter notebook
我在 python 3.7.5 上调用时遇到了这个问题
pip install jupyter
解决方法是先调用
pip install argon2-cffi==20.1.0
然后调用
pip install jupyter
我认为错误出现在最新版本的 argon2-cffi 中。即 21.1.0 https://pypi.org/project/argon2-cffi/21.1.0/#history
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
我在我的电脑上安装了 python 3.9。当我尝试安装 jupyter notebook 时出现此错误。那么如何解决这个问题?
由于报错提示需要下载Microsoft Visual C++ 14.0 or greater.
我遇到了和你完全一样的问题。我就是这样解决的。
我在这里找到了答案:https://discuss.codecademy.com/t/having-trouble-installing-jupyter-notebooks/537292/2
您可以使用 link 并根据需要按照说明进行操作。我也会在这里告诉你如何做。
这很容易解决。该错误与 Microsoft Visual C++ 过时有关。在错误中,它为您提供了更新的 link。
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/ 并单击 'Download Build Tools' 并安装它。
安装完成后,您会看到一些选择。 Select 'C++ build tools' 并安装它。完成后重新启动计算机。那么运行pip install jupyter
你应该就不错了!
万一其他人有问题,在他们的情况下会起作用。
在我的例子中,我使用了:
py -3.8 -m pip install pyautogui
这给了我回应:
Python 3.8 not found!
Installed Pythons found by C:\Windows\py.exe Launcher for Windows
-3.9-64 *
-3.7-64
于是我安装了Python3.8后再次使用:
py -3.8 -m pip install pyautogui
结果:
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.
P.S. 现在添加The wheel
Microsoft Visual C++ 14.2 独立版:Visual Studio 2019 的构建工具(x86、x64、ARM、ARM64)
这是独立版的Visual C++ 14.2编译器,不需要安装Visual Studio 2019.
在Build tools中,安装C++ build tools,确保是最新的 MSVCv142 版本 - VS 2019 C++ x64/x86 构建工具和 Windows 10 已检查 SDK。
setuptools Python 包版本必须至少为 34.4.0。
Build Tools 还允许我们安装任何以前的 Visual C++ 14 版本(包括 2015、2017 版本)。
1.11 GB 下载大小; Space4.4GB
argon2-cffi
现在为 Windows 运送 Python 3.9 车轮,这应该可以解决您的安装问题。
如果 mac 用户使用 Intel CPU,请检查您的 pip 版本,如果您是通过以下命令安装的:
pip install notebook
升级你的 PIP,对我有用的命令:
/Library/Developer/CommandLineTools/usr/bin/python3 -m pip install --upgrade pip
检查它是否是最新版本的 PIP,使用命令:
pip --version
再次尝试:
pip install notebook
这次你应该看不到任何错误。
然后在路径变量中包含 ~/Library/Python/3.8/bin。 通过 :
检查它是否存在echo $PATH
然后通过命令启动 jupyter notebook :
jupyter notebook
我在 python 3.7.5 上调用时遇到了这个问题
pip install jupyter
解决方法是先调用
pip install argon2-cffi==20.1.0
然后调用
pip install jupyter
我认为错误出现在最新版本的 argon2-cffi 中。即 21.1.0 https://pypi.org/project/argon2-cffi/21.1.0/#history