python - 我无法在 Python3.9 上安装 Jupyter Notebook
问题描述
这是我尝试 pip install notebook 时遇到的错误。我正在使用 Python3.9。我安装了 VS C++ 构建工具并重新启动了我的机器。似乎仍然无法安装 jupyter,有人可以帮忙吗?谢谢!
ERROR: Command errored out with exit status 1:
command: 'c:\users\sahi0h\appdata\local\programs\python\python39\python.exe' 'c:\users\sahi0h\appdata\local\programs\python\python39\lib\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'C:\Users\sahi0h\AppData\Local\Temp\tmpgkwkmc6k'
cwd: C:\Users\sahi0h\AppData\Local\Temp\pip-install-29y4gn0n\argon2-cffi
Complete output (25 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
creating build\temp.win-amd64-3.9
creating build\temp.win-amd64-3.9\extras
creating build\temp.win-amd64-3.9\extras\libargon2
creating build\temp.win-amd64-3.9\extras\libargon2\src
creating build\temp.win-amd64-3.9\extras\libargon2\src\blake2
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iextras\libargon2\src\..\include -Iextras\libargon2\src\blake2 -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\include /Tcextras\libargon2\src\argon2.c /Fobuild\temp.win-amd64-3.9\extras\libargon2\src\argon2.obj
argon2.c
extras\libargon2\src\argon2.c(18): fatal error C1083: Cannot open include file: 'string.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.27.29110\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
----------------------------------------
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 并安装了 Python3.8。Pip 安装现在正在运行。
推荐阅读
- android - 带有 Android Studio 的 Mac 上的 GitLab 问题:SSL 对等握手失败,GitLab 存储库
- sql - Azure 数据工厂 - SQL 到嵌套 JSON
- javascript - 我如何连接选择和输入字段的值并与 JavaScript 一起显示
- python - Image Captioning im2txt 模型的对象创建,避免为每个图像加载检查点
- python - 检查列内的字符串错误行为 - Pandas
- google-cloud-platform - 'transcirbe_steaming_infinite.py' 麦克风设置(多通道)会影响响应的到达时间吗?
- ruby - 如何在解释文件时让 ruby 在类中执行代码的特性
- r - 模拟 AR (1) 模型
- python - 数据框索引 groupby 错误 ValueError: 'GL' 既是索引级别又是列标签
- r - 如何在 R 中显示箱线图的各个点?