我是 python 和 pip 生态系统的新手。我正在尝试安装 scikit-image,我想它正在安装 scipy 作为依赖项。我使用的是 macOS 11.1,我知道对这个版本的支持不是很好,因为它刚刚发布,但我能够通过更改几个标志(LDFLAGS、CPPFLAGS)来安装像 numpy、pillow 这样的软件包。
有人能告诉我是否可以通过更改一些配置来解决以下安装错误吗?
我已经安装了 openblas、mkl_rt 库。
(trial) ~/.virtualenvs/trial python -m pip install scikit-image
Collecting scikit-image
Using cached scikit-image-0.17.2.tar.gz (29.8 MB)
Requirement already satisfied: numpy>=1.15.1 in ./lib/python3.6/site-packages (from scikit-image) (1.19.4)
Collecting scipy>=1.0.1
Using cached scipy-1.5.4.tar.gz (25.2 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... error
ERROR: Command errored out with exit status 1:
command: /Users/myusername/.virtualenvs/trial/bin/python /Users/myusername/.virtualenvs/trial/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /var/folders/ss/d2f4tvvn7fzc42ls4hbrw06h0000gn/T/tmpk55uptaz
cwd: /private/var/folders/ss/d2f4tvvn7fzc42ls4hbrw06h0000gn/T/pip-install-1v5ec7uf/scipy
Complete output …Run Code Online (Sandbox Code Playgroud)