xcode 错误:命令“clang”失败,退出状态为1:关于在MacOS Big Sur M1上安装Pandas

li9yvcax  于 2022-12-05  发布在  Mac
关注(0)|答案(5)|浏览(256)

我使用pip install pandaspip3 install pandas安装Pandas。我得到以下无限类似错误:
(Note:我在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。

vfhzx4xs

vfhzx4xs1#

在rosetta模式下运行终端,然后键入pip3 install pandas

zxlwwiss

zxlwwiss2#

此问题通常发生在没有用于M1 Mac的二进制文件(在python软件包中为wheel)的软件包中。
我尝试过的一个解决方案是从git repo的源代码构建包。
这可以通过pip安装完成,如下所示:

pip install git+https://github.com/pandas-dev/pandas.git

请注意git+前缀,这是通知pip下载它作为一个包来构建一个轮子,否则pip将无法解包存档。
您也可以将

git+https://github.com/pandas-dev/pandas.git

到您的要求. txt
这个解决方案允许pip为你的本地环境构建wheel,在这个过程中可能会在其他包中引入冲突,这可能需要你对其他失败的依赖项也做同样的事情。
如果您不将此提交到您的requirements.txt中(除非需要),则对项目的其他合作者可能更好。

ego6inou

ego6inou3#

numpy中的altivec标志在提交516bb1a时被删除。现在pandas可以通过
pip安装numpy==1.21.0rc1Pandas

idfiyjo8

idfiyjo84#

如果您使用的是Mac M1,然后尝试下面的事情。

export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1
export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1
kuuvgm7e

kuuvgm7e5#

转到https://developer.apple.com/download/all/?q=command%20Line并搜索命令行工具(我更喜欢非测试版),下载并从软件包中安装。

相关问题