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
Run Code Online (Sandbox Code Playgroud)
我在我的电脑上安装了 python 3.9。当我尝试安装 jupyter notebook 时出现此错误。那么如何解决这个问题?
Raj*_*ope 18
如果您是使用 Intel CPU 的 mac 用户,只需检查您的 pip 版本(如果您通过以下命令进行安装):
pip install notebook
Run Code Online (Sandbox Code Playgroud)
升级你的 PIP,这个命令对我有用:
/Library/Developer/CommandLineTools/usr/bin/python3 -m pip install --upgrade pip
Run Code Online (Sandbox Code Playgroud)
使用命令检查是否是最新版本的 PIP:
pip --version
Run Code Online (Sandbox Code Playgroud)
再次执行此操作后,尝试:
pip install notebook
Run Code Online (Sandbox Code Playgroud)
这次您应该不会看到任何错误。
然后在路径变量中包含 ~/Library/Python/3.8/bin 。检查它是否存在:
echo $PATH
Run Code Online (Sandbox Code Playgroud)
然后通过命令启动 jupyter 笔记本:
jupyter notebook
Run Code Online (Sandbox Code Playgroud)
如果您觉得这个答案有用,请点赞:)
小智 7
我有和你完全相同的问题。我就是这样解决的。
我在这里找到了答案: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/
Run Code Online (Sandbox Code Playgroud)
转到https://visualstudio.microsoft.com/visual-cpp-build-tools/并单击“下载构建工具”并安装它。
安装后,您将看到一些选择。选择“C++ 构建工具”并安装它。完成后重新启动计算机。然后跑吧pip install jupyter,你应该会好起来的!
当我打电话时,我在 python 3.7.5 上遇到了这个问题
pip install jupyter
Run Code Online (Sandbox Code Playgroud)
解决方案是首先调用
pip install argon2-cffi==20.1.0
Run Code Online (Sandbox Code Playgroud)
然后打电话
pip install jupyter
Run Code Online (Sandbox Code Playgroud)
我认为最新版本的 argon2-cffi 中存在该错误。这是 21.1.0 https://pypi.org/project/argon2-cffi/21.1.0/#history
| 归档时间: |
|
| 查看次数: |
15098 次 |
| 最近记录: |