错误:命令“clang”失败,退出状态为 1:在 MacOS Big Sur M1 上安装熊猫
Posted
技术标签:
【中文标题】错误:命令“clang”失败,退出状态为 1:在 MacOS Big Sur M1 上安装熊猫【英文标题】:error: command 'clang' failed with exit status 1 : On installing pandas on MacOS Big Sur M1 【发布时间】:2021-05-04 04:07:13 【问题描述】:我使用pip install pandas
或pip3 install pandas
安装pandas。我得到以下无限类似的错误:
(注意:我在 virtualenv 中运行这些安装,使用 python3 -m venv myenv
创建)
/* DISABLES CODE */ ( )
numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code]
npy_intp k;
^~~~~~~~~~~
numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead
else if (0 && kth == num - 1)
^
/* DISABLES CODE */ ( )
numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code]
npy_intp k;
^~~~~~~~~~~
numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead
else if (0 && kth == num - 1)
^
/* DISABLES CODE */ ( )
numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code]
npy_intp k;
^~~~~~~~~~~
numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead
else if (0 && kth == num - 1)
^
/* DISABLES CODE */ ( )
numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code]
npy_intp k;
^~~~~~~~~~~
numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead
else if (0 && kth == num - 1)
^
/* DISABLES CODE */ ( )
numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code]
npy_intp k;
^~~~~~~~~~~
numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead
else if (0 && kth == num - 1)
^
/* DISABLES CODE */ ( )
numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code]
npy_intp k;
^~~~~~~~~~~
numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead
else if (0 && kth == num - 1)
^
/* DISABLES CODE */ ( )
numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code]
npy_intp k;
^~~~~~~~~~~
numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead
else if (0 && kth == num - 1)
^
/* DISABLES CODE */ ( )
numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code]
npy_intp k;
^~~~~~~~~~~
numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead
else if (0 && kth == num - 1)
^
/* DISABLES CODE */ ( )
numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code]
npy_intp k;
^~~~~~~~~~~
numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead
else if (0 && kth == num - 1)
^
/* DISABLES CODE */ ( )
numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code]
npy_intp k;
^~~~~~~~~~~
numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead
else if (0 && kth == num - 1)
^
/* DISABLES CODE */ ( )
numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code]
npy_intp k;
^~~~~~~~~~~
numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead
else if (0 && kth == num - 1)
^
/* DISABLES CODE */ ( )
22 warnings generated.
ar: adding 7 object files to build/temp.macosx-10.14.6-arm64-3.8/libnpysort.a
warning: /Library/Developer/CommandLineTools/usr/bin/ranlib: archive library: build/temp.macosx-10.14.6-arm64-3.8/libnpysort.a will be fat and ar(1) will not be able to operate on it
ranlib:@ build/temp.macosx-10.14.6-arm64-3.8/libnpysort.a
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
building 'numpy.core._dummy' extension
compiling C sources
C compiler: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64
compile options: '-DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -Inumpy/core/include -Ibuild/src.macosx-10.14.6-arm64-3.8/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/ruchit/Desktop/V1/Backend/jumbo/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -Ibuild/src.macosx-10.14.6-arm64-3.8/numpy/core/src/common -Ibuild/src.macosx-10.14.6-arm64-3.8/numpy/core/src/npymath -Ibuild/src.macosx-10.14.6-arm64-3.8/numpy/core/src/common -Ibuild/src.macosx-10.14.6-arm64-3.8/numpy/core/src/npymath -c'
clang: numpy/core/src/dummymodule.c
clang -bundle -undefined dynamic_lookup -Wl,-headerpad,0x1000 -arch arm64 -arch x86_64 build/temp.macosx-10.14.6-arm64-3.8/numpy/core/src/dummymodule.o -Lbuild/temp.macosx-10.14.6-arm64-3.8 -o build/lib.macosx-10.14.6-arm64-3.8/numpy/core/_dummy.cpython-38-darwin.so
building 'numpy.core._multiarray_tests' extension
compiling C sources
C compiler: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64
creating build/temp.macosx-10.14.6-arm64-3.8/build/src.macosx-10.14.6-arm64-3.8/numpy/core/src/multiarray
creating build/temp.macosx-10.14.6-arm64-3.8/numpy/core/src/common
compile options: '-DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -Inumpy/core/include -Ibuild/src.macosx-10.14.6-arm64-3.8/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/ruchit/Desktop/V1/Backend/jumbo/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -Ibuild/src.macosx-10.14.6-arm64-3.8/numpy/core/src/common -Ibuild/src.macosx-10.14.6-arm64-3.8/numpy/core/src/npymath -Ibuild/src.macosx-10.14.6-arm64-3.8/numpy/core/src/common -Ibuild/src.macosx-10.14.6-arm64-3.8/numpy/core/src/npymath -c'
clang: build/src.macosx-10.14.6-arm64-3.8/numpy/core/src/multiarray/_multiarray_tests.c
clang: numpy/core/src/common/mem_overlap.c
clang -bundle -undefined dynamic_lookup -Wl,-headerpad,0x1000 -arch arm64 -arch x86_64 build/temp.macosx-10.14.6-arm64-3.8/build/src.macosx-10.14.6-arm64-3.8/numpy/core/src/multiarray/_multiarray_tests.o build/temp.macosx-10.14.6-arm64-3.8/numpy/core/src/common/mem_overlap.o -Lbuild/temp.macosx-10.14.6-arm64-3.8 -lnpymath -o build/lib.macosx-10.14.6-arm64-3.8/numpy/core/_multiarray_tests.cpython-38-darwin.so
building 'numpy.core._multiarray_umath' extension
compiling C sources
C compiler: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64
creating build/temp.macosx-10.14.6-arm64-3.8/numpy/core/src/multiarray
creating build/temp.macosx-10.14.6-arm64-3.8/numpy/core/src/umath
creating build/temp.macosx-10.14.6-arm64-3.8/build/src.macosx-10.14.6-arm64-3.8/numpy/core/src/umath
creating build/temp.macosx-10.14.6-arm64-3.8/private
creating build/temp.macosx-10.14.6-arm64-3.8/private/var
creating build/temp.macosx-10.14.6-arm64-3.8/private/var/folders
creating build/temp.macosx-10.14.6-arm64-3.8/private/var/folders/d2
creating build/temp.macosx-10.14.6-arm64-3.8/private/var/folders/d2/rs5y6mmj7cqftysfzs_x1lg00000gn
creating build/temp.macosx-10.14.6-arm64-3.8/private/var/folders/d2/rs5y6mmj7cqftysfzs_x1lg00000gn/T
creating build/temp.macosx-10.14.6-arm64-3.8/private/var/folders/d2/rs5y6mmj7cqftysfzs_x1lg00000gn/T/pip-install-eu_oftlb
creating build/temp.macosx-10.14.6-arm64-3.8/private/var/folders/d2/rs5y6mmj7cqftysfzs_x1lg00000gn/T/pip-install-eu_oftlb/numpy_6d7d3a999a24445dbb5f662254667aec
creating build/temp.macosx-10.14.6-arm64-3.8/private/var/folders/d2/rs5y6mmj7cqftysfzs_x1lg00000gn/T/pip-install-eu_oftlb/numpy_6d7d3a999a24445dbb5f662254667aec/numpy
creating build/temp.macosx-10.14.6-arm64-3.8/private/var/folders/d2/rs5y6mmj7cqftysfzs_x1lg00000gn/T/pip-install-eu_oftlb/numpy_6d7d3a999a24445dbb5f662254667aec/numpy/_build_utils
creating build/temp.macosx-10.14.6-arm64-3.8/private/var/folders/d2/rs5y6mmj7cqftysfzs_x1lg00000gn/T/pip-install-eu_oftlb/numpy_6d7d3a999a24445dbb5f662254667aec/numpy/_build_utils/src
compile options: '-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.14.6-arm64-3.8/numpy/core/src/umath -Ibuild/src.macosx-10.14.6-arm64-3.8/numpy/core/src/npymath -Ibuild/src.macosx-10.14.6-arm64-3.8/numpy/core/src/common -Inumpy/core/include -Ibuild/src.macosx-10.14.6-arm64-3.8/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/ruchit/Desktop/V1/Backend/jumbo/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -Ibuild/src.macosx-10.14.6-arm64-3.8/numpy/core/src/common -Ibuild/src.macosx-10.14.6-arm64-3.8/numpy/core/src/npymath -Ibuild/src.macosx-10.14.6-arm64-3.8/numpy/core/src/common -Ibuild/src.macosx-10.14.6-arm64-3.8/numpy/core/src/npymath -c'
extra options: '-faltivec -I/System/Library/Frameworks/vecLib.framework/Headers'
clang: numpy/core/src/multiarray/array_assign_scalar.c
clang: numpy/core/src/multiarray/alloc.c
clang: numpy/core/src/multiarray/buffer.c
clang: numpy/core/src/multiarray/common.c
clang: numpy/core/src/multiarray/datetime_strings.c
clang: numpy/core/src/multiarray/descriptor.c
clang: build/src.macosx-10.14.6-arm64-3.8/numpy/core/src/multiarray/einsum.c
clang: numpy/core/src/multiarray/conversion_utils.c
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
clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
clang: numpy/core/src/multiarray/hashdescr.c
clang: build/src.macosx-10.14.6-arm64-3.8/numpy/core/src/multiarray/lowlevel_strided_loops.c
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: numpy/core/src/multiarray/multiarraymodule.c
clang: numpy/core/src/multiarray/nditer_constr.c
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: numpy/core/src/multiarray/refcount.c
clang: numpy/core/src/multiarray/scalarapi.c
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: numpy/core/src/multiarray/temp_elide.c
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: numpy/core/src/multiarray/vdot.c
clang: build/src.macosx-10.14.6-arm64-3.8/numpy/core/src/umath/loops.c
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: numpy/core/src/umath/ufunc_object.c
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: build/src.macosx-10.14.6-arm64-3.8/numpy/core/src/umath/scalarmath.c
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: numpy/core/src/common/npy_longdouble.c
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: numpy/core/src/common/numpyos.c
clang: numpy/core/src/npymath/halffloat.c
clang: numpy/core/src/npymath/npy_math.c
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: /private/var/folders/d2/rs5y6mmj7cqftysfzs_x1lg00000gn/T/pip-install-eu_oftlb/numpy_6d7d3a999a24445dbb5f662254667aec/numpy/_build_utils/src/apple_sgemv_fix.c
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
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 "clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -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.14.6-arm64-3.8/numpy/core/src/umath -Ibuild/src.macosx-10.14.6-arm64-3.8/numpy/core/src/npymath -Ibuild/src.macosx-10.14.6-arm64-3.8/numpy/core/src/common -Inumpy/core/include -Ibuild/src.macosx-10.14.6-arm64-3.8/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/ruchit/Desktop/V1/Backend/jumbo/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -Ibuild/src.macosx-10.14.6-arm64-3.8/numpy/core/src/common -Ibuild/src.macosx-10.14.6-arm64-3.8/numpy/core/src/npymath -Ibuild/src.macosx-10.14.6-arm64-3.8/numpy/core/src/common -Ibuild/src.macosx-10.14.6-arm64-3.8/numpy/core/src/npymath -c numpy/core/src/multiarray/alloc.c -o build/temp.macosx-10.14.6-arm64-3.8/numpy/core/src/multiarray/alloc.o -MMD -MF build/temp.macosx-10.14.6-arm64-3.8/numpy/core/src/multiarray/alloc.o.d -faltivec -I/System/Library/Frameworks/vecLib.framework/Headers" failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/ruchit/Desktop/V1/Backend/jumbo/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/d2/rs5y6mmj7cqftysfzs_x1lg00000gn/T/pip-install-eu_oftlb/numpy_6d7d3a999a24445dbb5f662254667aec/setup.py'"'"'; __file__='"'"'/private/var/folders/d2/rs5y6mmj7cqftysfzs_x1lg00000gn/T/pip-install-eu_oftlb/numpy_6d7d3a999a24445dbb5f662254667aec/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/d2/rs5y6mmj7cqftysfzs_x1lg00000gn/T/pip-record-f9lmvg7d/install-record.txt --single-version-externally-managed --prefix /private/var/folders/d2/rs5y6mmj7cqftysfzs_x1lg00000gn/T/pip-build-env-pya4pm20/overlay --compile --install-headers /private/var/folders/d2/rs5y6mmj7cqftysfzs_x1lg00000gn/T/pip-build-env-pya4pm20/overlay/include/site/python3.8/numpy Check the logs for full command output.
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/11/1c/b0bc154996617eae877ff267fcf84e55e6c6808dbade0da206f0419dd483/pandas-1.2.1.tar.gz#sha256=5527c5475d955c0bc9689c56865aaa2a7b13c504d6c44f0aadbf57b565af5ebd (from https://pypi.org/simple/pandas/) (requires-python:>=3.7.1). Command errored out with exit status 1: /Users/ruchit/Desktop/V1/Backend/jumbo/bin/python3 /Users/ruchit/Desktop/V1/Backend/jumbo/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/d2/rs5y6mmj7cqftysfzs_x1lg00000gn/T/pip-build-env-pya4pm20/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.
我已经更新了我的 pip 版本。
我尝试再次重新安装 xcode 命令行工具。 xcode-select --install
我安装了xcode
。
尝试更新设置工具pip3 install --upgrade setuptools
.
我尝试了这个问题的所有解决方案:this SO solution
似乎没有任何效果,我已经筋疲力尽了。 Mac 更新最差。这是我昨晚更新我的 mac 后发生的。
我还使用 pip install cython
安装了 cython。
【问题讨论】:
你可以尝试从源代码安装pandas,见***.com/a/66048187/10600890 【参考方案1】:以 Rosetta 模式运行终端,然后输入 pip3 install pandas
【讨论】:
【参考方案2】:此问题通常发生在没有适用于 M1 Mac 的二进制文件(python 包中为***)的包中。
我尝试过的一个解决方案是从其 git repo 的源代码构建包。
这可以通过 pip install 来完成,如下所示:
pip install git+https://github.com/pandas-dev/pandas.git
注意git+
前缀,这是通知 pip 将其下载为要构建为***的包的原因,否则 pip 将无法解压缩存档。
你也可以加
git+https://github.com/pandas-dev/pandas.git
到你的 requirements.txt
此解决方案允许 pip 为您的本地环境构建***,并且在此过程中可能会在其他包中引入冲突,这可能需要您对其他失败的依赖项也这样做。
除非需要,否则如果您请勿将其提交到您的requirements.txt
,对项目的其他合作者可能会更好。
【讨论】:
【参考方案3】:numpy 中的 altivec 标志在提交 516bb1a 中被删除。现在可以通过
成功安装pandaspip install numpy==1.21.0rc1 pandas
【讨论】:
【参考方案4】:转到https://developer.apple.com/download/all/?q=command%20Line 并搜索命令行工具(我更喜欢非 Beta 版)下载并从包中安装。
【讨论】:
他似乎已经安装了 clang - 但他缺少支持 -faltivec 标志的 PowerPC 芯片。我猜问题是 Makefile 检测到 Mac 有一个非英特尔芯片,并假设这意味着它是 PowerPC 芯片而不是寻找 M1。以上是关于错误:命令“clang”失败,退出状态为 1:在 MacOS Big Sur M1 上安装熊猫的主要内容,如果未能解决你的问题,请参考以下文章
在 Mac OS 10.13.15 上安装 MySQL-python 导致命令“clang”失败,退出状态为 1
clang++:错误:链接器命令失败,退出代码为 1 Qt Android
无法使用 pip 在 python 3 中安装 GDAL(clang 失败,退出状态为 1)
Flutter Xcode:clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)