无法在 macbook pro M1 芯片上使用 pip install 安装任何库

时间:2021-04-06 22:11:33

标签: python pip apple-m1

我按照本教程 (https://github.com/apple/tensorflow_macos/issues/153) 在 miniforge3 环境中的新 macbook pro M1 芯片上安装了 tensorflow。 Tensorflow 似乎工作正常。但是,我现在在尝试使用 pip 安装诸如 pandas 或 scikit-learn 之类的库时遇到了麻烦。

https://localhost:8000/auth/redirect

当我尝试 (tf_env) romainbesombes@iphonedejeanne ~ % python --version Python 3.8.8 (tf_env) romainbesombes@iphonedejeanne ~ % which python /Users/romainbesombes/miniforge3/envs/tf_env/bin/python 时,出现以下错误:

pip install pandas

我在尝试安装 Pandas 时遇到了同样的问题,当我使用 (tf_env) romainbesombes@iphonedejeanne ~ % pip install scikit-learn Collecting scikit-learn Using cached scikit-learn-0.24.1.tar.gz (7.4 MB) Installing build dependencies ... error ERROR: Command errored out with exit status 1: command: /Users/romainbesombes/miniforge3/envs/tf_env/bin/python3.8 /Users/romainbesombes/miniforge3/envs/tf_env/lib/python3.8/site-packages/pip install --ignore- installed --no-user --prefix /private/var/folders/ws/rnp7yn295s13fdr961g5szxw0000gn/T/pip-build- env-ambjl5m8/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'Cython>=0.28.5' 'numpy==1.13.3; python_version=='"'"'3.6'"'"' and platform_machine!='"'"'aarch64'"'"' and platform_system!='"'"'AIX'"'"' and platform_python_implementation=='"'"'CPython'"'"'' 'numpy==1.14.0; python_version=='"'"'3.6'"'"' and platform_machine!='"'"'aarch64'"'"' and platform_system!='"'"'AIX'"'"' and platform_python_implementation!='"'"'CPython'"'"'' 'numpy==1.16.0; python_version=='"'"'3.6'"'"' and platform_machine!='"'"'aarch64'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.7'"'"' and platform_machine!='"'"'aarch64'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.19.0; python_version=='"'"'3.6'"'"' and platform_machine=='"'"'aarch64'"'"'' 'numpy==1.19.0; python_version=='"'"'3.7'"'"' and platform_machine=='"'"'aarch64'"'"'' 'numpy==1.19.0; python_version=='"'"'3.8'"'"' and platform_machine=='"'"'aarch64'"'"'' 'numpy==1.14.5; python_version=='"'"'3.7'"'"' and platform_machine!='"'"'aarch64'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"' and platform_machine!='"'"'aarch64'"'"'' 'numpy==1.19.3; python_version=='"'"'3.9'"'"'' 'scipy>=0.19.1' cwd: None Complete output (3663 lines): [...] 而不是 conda install pandas 时它起作用了。但是,我想在将来使用 pip ......知道如何解决这个问题吗? 提前致谢

0 个答案:

没有答案