Ros*_*han 32 python numpy pip virtualenv python-wheel
pip install numpy=1.19.1我正在尝试在 python 虚拟环境中使用命令安装特定版本的 numpy 。但我收到以下错误
ERROR: Failed building wheel for numpy
Failed to build numpy
ERROR: Could not build wheels for numpy which use PEP 517 and cannot be installed directly
Run Code Online (Sandbox Code Playgroud)
我该如何解决这个问题?我正在使用 Python 3.9.6 和 Pip 21.1.3。我使用的是 macOS Big Sur。
小智 32
通过 VS Code 的集成终端安装 Numpy 包时,我在 MacBook Air(macOS BigSur) 笔记本电脑上遇到了同样的错误。我找到了解决方案:所以之前我使用的是旧版本的 pip ie 19.2.3。但是当我使用命令将其升级到最新版本时
pip install --upgrade pip
Run Code Online (Sandbox Code Playgroud)
之后运行命令时
pip install numpy
Run Code Online (Sandbox Code Playgroud)
它工作得非常好。
运行上述命令时,我的Python版本是3.8.2。
dgo*_*gor 25
我认为 NumPy 还没有为 Python 3.9 做好准备,因为他们需要检查很多次。你应该尝试Python 3.7或3.8更好。
请参阅此线程:https://github.com/numpy/numpy/issues/17569
编辑:根据numpy 网站上的最新消息(12 月 31 日),Numpy 似乎现在也支持 python 3.9 和 3.10
| 归档时间: |
|
| 查看次数: |
96343 次 |
| 最近记录: |