小编jad*_*dev的帖子

在 macOS BigSur 上使用自制 python 安装 numpy 时出现问题

我有 macOS BigSur -> 安装了 CommandLineTools 12.3 beta -> 安装了 homebrew -> 安装了带有brew install python@3.8. Python 运行良好,当我使用该命令时就会出现python3。但是,当我尝试安装 NumPy 时,pip3 install numpy出现以下错误。我将衷心感谢您的帮助

Collecting numpy
  Using cached numpy-1.19.4.zip (7.3 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/local/opt/python@3.8/bin/python3.8 /usr/local/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /var/folders/pt/_zy2t2xj0mvbh41_pm942s8m0000gn/T/tmp7cqupall
         cwd: /private/var/folders/pt/_zy2t2xj0mvbh41_pm942s8m0000gn/T/pip-install-0ccafnfa/numpy
    Complete output (227 lines):
    Processing numpy/random/_bounded_integers.pxd.in
    Processing numpy/random/_philox.pyx
    Processing numpy/random/_bounded_integers.pyx.in
    Processing numpy/random/_sfc64.pyx
    Processing numpy/random/_mt19937.pyx …
Run Code Online (Sandbox Code Playgroud)

python macos homebrew numpy macos-big-sur

5
推荐指数
1
解决办法
6088
查看次数

标签 统计

homebrew ×1

macos ×1

macos-big-sur ×1

numpy ×1

python ×1