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笔记本时,出现此错误。那么如何解决这个问题呢?
答案 0 :(得分:3)
我遇到了与您完全相同的问题。这就是我解决的方法。
我在这里找到了答案:https://discuss.codecademy.com/t/having-trouble-installing-jupyter-notebooks/537292/2
如果需要,您可以使用链接并按照说明进行操作。我还将在这里告诉您如何操作。
这很容易解决。该错误是有关Microsoft Visual C ++过期的。错误时,它会为您提供更新的链接。
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
,您应该会很好!
答案 1 :(得分:1)
由于错误表明您需要下载Microsoft Visual C++ 14.0 or greater。
答案 2 :(得分:1)
如果其他人有问题,并且在他们的情况下可行。
在我的情况下,我使用了:
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
因此,在我安装Python 3.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.
答案 3 :(得分:1)
PS The wheel已添加
Microsoft Visual C ++ 14.2独立版:Visual Studio 2019的构建工具(x86,x64,ARM,ARM64)
这是Visual C ++ 14.2编译器的独立版本,您无需安装Visual Studio 2019。
在Build tools中,安装C ++生成工具并确保最新 版本的MSVCv142-VS 2019 C ++ x64 / x86构建工具和Windows 10 SDK已检查。
setuptools Python软件包的版本必须至少为34.4.0。
构建工具还允许我们安装任何以前的Visual C ++ 14版本(包括2015年,2017年的版本)。
1.11 GB下载大小;空间4.4 GB
答案 4 :(得分:1)
{{1}}现在正在为Windows发行Python 3.9轮子,这应该可以解决您的安装问题。