Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/333.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Pip安装导致错误(Python3.8、Pycharm、Apple Silicon)_Python_Pandas_Pycharm_Apple Silicon - Fatal编程技术网

Pip安装导致错误(Python3.8、Pycharm、Apple Silicon)

Pip安装导致错误(Python3.8、Pycharm、Apple Silicon),python,pandas,pycharm,apple-silicon,Python,Pandas,Pycharm,Apple Silicon,通过pip安装pandas安装pandas会导致以下错误。我真的不知道该怎么做,也不知道该怎么解决。我希望我给了你足够的信息。 我将非常感谢你的帮助 设置: macOS BigSur 11.1 苹果硅,MacBookPro(13“,M1,2020年) 适用于苹果硅2020.3.2的PyCharm CE。通过JetBrains工具箱进行管理 使用Python3.9(也尝试使用Python3.8,但结果是相同的错误) 已安装的软件包: pip 20.3.3 设置工具51.3.3 错误消息:

通过
pip安装pandas
安装pandas会导致以下错误。我真的不知道该怎么做,也不知道该怎么解决。我希望我给了你足够的信息。 我将非常感谢你的帮助

设置:

  • macOS BigSur 11.1
  • 苹果硅,MacBookPro(13“,M1,2020年)
  • 适用于苹果硅2020.3.2的PyCharm CE。通过JetBrains工具箱进行管理
  • 使用Python3.9(也尝试使用Python3.8,但结果是相同的错误)
已安装的软件包:

  • pip 20.3.3
  • 设置工具51.3.3
错误消息: 收集熊猫 使用缓存的pandas-1.2.1.tar.gz(5.5 MB) 安装生成依赖项:已开始 安装生成依赖项:已完成,状态为“错误”

  ERROR: Command errored out with exit status 1:
   command: /Users/user/PycharmProjects/test1/venv/bin/python /Users/user/PycharmProjects/test1/venv/lib/python3.9/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/vc/_39tpjws3jbb_wprblz865200000gn/T/pip-build-env-pdrftgon/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'Cython>=0.29.21,<3' 'numpy==1.16.5; python_version=='"'"'3.7'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.16.5; python_version=='"'"'3.7'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy; python_version>='"'"'3.9'"'"''
       cwd: None
  Complete output (1081 lines):
  Ignoring numpy: markers 'python_version == "3.7" and platform_system != "AIX"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.8" and platform_system != "AIX"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.7" and platform_system == "AIX"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.8" and platform_system == "AIX"' don't match your environment
  Collecting Cython<3,>=0.29.21
    Using cached Cython-0.29.21-py2.py3-none-any.whl (974 kB)
  Collecting numpy
    Using cached numpy-1.19.5.zip (7.3 MB)
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'done'
      Preparing wheel metadata: started
      Preparing wheel metadata: finished with status 'done'
  Collecting wheel
    Using cached wheel-0.36.2-py2.py3-none-any.whl (35 kB)
  Collecting setuptools
    Using cached setuptools-51.3.3-py3-none-any.whl (786 kB)
  Building wheels for collected packages: numpy
    Building wheel for numpy (PEP 517): started
    Building wheel for numpy (PEP 517): finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: /Users/user/PycharmProjects/test1/venv/bin/python /Users/user/PycharmProjects/test1/venv/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /var/folders/vc/_39tpjws3jbb_wprblz865200000gn/T/tmpt7i8fum9
         cwd: /private/var/folders/vc/_39tpjws3jbb_wprblz865200000gn/T/pip-install-10nrvsom/numpy_27b9d8e3033f43b4964c635b439e0373
    Complete output (1052 lines):
    Running from numpy source directory.
    Cythonizing sources
    numpy/random/_bounded_integers.pxd.in has not changed
    numpy/random/_philox.pyx has not changed
    numpy/random/_bounded_integers.pyx.in has not changed
    numpy/random/_sfc64.pyx has not changed
    numpy/random/_mt19937.pyx has not changed
    numpy/random/bit_generator.pyx has not changed
    Processing numpy/random/_bounded_integers.pyx
    numpy/random/mtrand.pyx has not changed
    numpy/random/_generator.pyx has not changed
    numpy/random/_pcg64.pyx has not changed
    numpy/random/_common.pyx has not changed
    blas_opt_info:
    blas_mkl_info:
    customize UnixCCompiler
      libraries mkl_rt not found in ['/Users/user/PycharmProjects/test1/venv/lib', '/usr/lib']
      NOT AVAILABLE
  
    clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
    clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
    clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
    clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
    clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
    clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
    clang: clang: errorerror: : the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitlythe clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
  
    clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
    clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
    clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
    clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
    clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
    clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
    clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
    error: Command "gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DNO_ATLAS_INFO=3 -DHAVE_CBLAS -Ibuild/src.macosx-10.9-universal2-3.9/numpy/core/src/umath -Ibuild/src.macosx-10.9-universal2-3.9/numpy/core/src/npymath -Ibuild/src.macosx-10.9-universal2-3.9/numpy/core/src/common -Inumpy/core/include -Ibuild/src.macosx-10.9-universal2-3.9/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/Users/user/PycharmProjects/test1/venv/include -I/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9 -Ibuild/src.macosx-10.9-universal2-3.9/numpy/core/src/common -Ibuild/src.macosx-10.9-universal2-3.9/numpy/core/src/npymath -c numpy/core/src/multiarray/buffer.c -o build/temp.macosx-10.9-universal2-3.9/numpy/core/src/multiarray/buffer.o -MMD -MF build/temp.macosx-10.9-universal2-3.9/numpy/core/src/multiarray/buffer.o.d -faltivec -I/System/Library/Frameworks/vecLib.framework/Headers -std=c99" failed with exit status 1
    ----------------------------------------
    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
  ----------------------------------------
ERROR: Command errored out with exit status 1: /Users/user/PycharmProjects/test1/venv/bin/python /Users/user/PycharmProjects/test1/venv/lib/python3.9/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/vc/_39tpjws3jbb_wprblz865200000gn/T/pip-build-env-pdrftgon/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'Cython>=0.29.21,<3' 'numpy==1.16.5; python_version=='"'"'3.7'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.16.5; python_version=='"'"'3.7'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy; python_version>='"'"'3.9'"'"'' Check the logs for full command output.
错误:命令出错,退出状态为1:
命令:/Users/user/PycharmProjects/test1/venv/bin/python/Users/user/PycharmProjects/test1/venv/lib/python3.9/site-packages/pip install--ignore installed--no user--prefix/private/var/folders/vc/39tpjws3jbb_wprblz86520000gn/T/pip build env pdrftgon/overlay--无警告脚本位置--无二进制:无:--仅二进制:无:-ihttps://pypi.org/简单--setuptools wheel'Cython>=0.29.21,='“'3.9'”
cwd:没有
完整输出(1081行):
忽略numpy:markers'python\u version==“3.7”和platform\u system!=“AIX”'与您的环境不匹配
忽略numpy:markers'python\u version==“3.8”和platform\u system!=“AIX”'与您的环境不匹配
忽略numpy:标记“python\u version==”3.7“和platform\u system==”AIX“与您的环境不匹配
忽略numpy:标记“python\u version==”3.8“和平台\u system==”AIX“与您的环境不匹配
收集Cython=0.29.21
使用缓存的Cython-0.29.21-py2.py3-none-any.whl(974 kB)
收集钱币
使用缓存的numpy-1.19.5.zip(7.3MB)
安装生成依赖项:已开始
安装生成依赖项:已完成,状态为“完成”
获取构建控制盘的需求:已开始
获取构建控制盘的要求:完成状态为“完成”
准备控制盘元数据:已开始
准备控制盘元数据:已完成,状态为“完成”
集电轮
使用缓存的wheel-0.36.2-py2.py3-none-any.whl(35 kB)
收集设置工具
使用缓存的setuptools-51.3.3-py3-none-any.whl(786 kB)
为收集的包构建轮子:numpy
为numpy(PEP 517)构建轮子:已启动
为numpy(PEP 517)构建控制盘:已完成,状态为“错误”
错误:命令出错,退出状态为1:
命令:/Users/user/PycharmProjects/test1/venv/bin/python/Users/user/PycharmProjects/test1/venv/lib/python3.9/site-packages/pip//u vendor/pep517//u in_process.py build\u wheel/var/folders/vc/\u 39tpjws3jbb\u wprblz865200000gn/T/tmpt7i8fum9
cwd:/private/var/folders/vc/39tpjws3jbb_wprblz865200000gn/T/pip-install-10nrvsom/numpy_27B9D8E3033F43B4964C635B39E0373
完整输出(1052行):
从numpy源目录运行。
环化源
numpy/random/_bounded_integers.pxd.in未更改
numpy/random/_philox.pyx未更改
numpy/random/_bounded_integers.pyx.in未更改
numpy/random/_sfc64.pyx未更改
numpy/random/_mt19937.pyx未更改
numpy/random/bit_generator.pyx未更改
处理numpy/random/_-bounded_integers.pyx
numpy/random/mtrand.pyx未更改
numpy/random/_generator.pyx未更改
numpy/random/_pcg64.pyx未更改
numpy/random/_common.pyx未更改
blas_opt_信息:
blas_mkl_信息:
自定义UnixC编译器
在['/Users/user/PycharmProjects/test1/venv/lib','/usr/lib']中找不到库mkl_rt
无法使用的
clang:错误:clang编译器不支持“faltivec”,请使用-maltivec并显式包含altivec.h
clang:错误:clang编译器不支持“faltivec”,请使用-maltivec并显式包含altivec.h
clang:错误:clang编译器不支持“faltivec”,请使用-maltivec并显式包含altivec.h
clang:错误:clang编译器不支持“faltivec”,请使用-maltivec并显式包含altivec.h
clang:错误:clang编译器不支持“faltivec”,请使用-maltivec并显式包含altivec.h
clang:错误:clang编译器不支持“faltivec”,请使用-maltivec并显式包含altivec.h
clang:clang:errorerror::clang编译器不支持“faltivec”,请使用-maltivec并明确包含altivec.h clang编译器不支持“faltivec”,请使用-maltivec并明确包含altivec.h
clang:错误:clang编译器不支持“faltivec”,请使用-maltivec并显式包含altivec.h
clang:错误:clang编译器不支持“faltivec”,请使用-maltivec并显式包含altivec.h
clang:错误:clang编译器不支持“faltivec”,请使用-maltivec并显式包含altivec.h
clang:错误:clang编译器不支持“faltivec”,请使用-maltivec并显式包含altivec.h
clang:错误:clang编译器不支持“faltivec”,请使用-maltivec并显式包含altivec.h
clang:错误:clang编译器不支持“faltivec”,请使用-maltivec并显式包含altivec.h
clang:错误:clang编译器不支持“faltivec”,请使用-maltivec并显式包含altivec.h
错误:命令“gcc-Wno unused result-Wsign compare-wunrechable code-fno common-dynamic-DNDEBUG-g-fwrapv-O3-Wall-arch arm64-arch x86\u 64-g-DNPY\u INTERNAL\u BUILD=1-DHAVE\u NPY\u CONFIG\u H=1-D\u FILE\u OFFSET\u BITS=64-D\u LARGEFILE\u SOURCE=1-D\u LARGEFILE64\u SOURCE=1-DNO\u ATLAS\u INFO=3-ve\u CBLAS-dhaild/src.macosx-10
$ brew install python@3.9
$ brew install openblas
$ OPENBLAS="$(brew --prefix openblas)" MACOSX_DEPLOYMENT_TARGET=11.1 python3 -m pip install cython --no-use-pep517
$ OPENBLAS="$(brew --prefix openblas)" MACOSX_DEPLOYMENT_TARGET=11.1 python3 -m pip install numpy --no-use-pep517
$ OPENBLAS="$(brew --prefix openblas)" MACOSX_DEPLOYMENT_TARGET=11.1 python3 -m pip install pandas --no-use-pep517
$ OPENBLAS="$(brew --prefix openblas)" MACOSX_DEPLOYMENT_TARGET=11.1 python3 -m pip install pybind11 --no-use-pep517
$ OPENBLAS="$(brew --prefix openblas)" MACOSX_DEPLOYMENT_TARGET=11.1 python3 -m pip install scipy --no-use-pep517
$ brew install libjpeg zlib
$ python3 -m pip install pillow
$ python3 -m pip install matplotlib
brew install openblas
OPENBLAS="$(brew --prefix openblas)" pip install numpy pandas