仕事でmacのM1を授かったので、pythonをインストールしました。
pythonをインストールするときも、pyenvでインストールしようとするとエラーが起きてしまい、homebrewでインストールしました。
次にnumpyをインストールしようとしてるのですが、エラーが発生し、進めません。。
terminal
1pip3 install numpy
すると、ものすごい量のエラーが発生します。。
terminal
1Collecting numpy 2 Using cached numpy-1.19.5.zip (7.3 MB) 3 Installing build dependencies ... done 4 Getting requirements to build wheel ... done 5 Preparing wheel metadata ... done 6Building wheels for collected packages: numpy 7 Building wheel for numpy (PEP 517) ... error 8 ERROR: Command errored out with exit status 1: 9 command: /opt/homebrew/opt/python@3.9/bin/python3.9 /opt/homebrew/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /var/folders/47/k58dkwws5tvg7q36hnbcjrwh0000gn/T/tmpom0aok6p 10 cwd: /private/var/folders/47/k58dkwws5tvg7q36hnbcjrwh0000gn/T/pip-install-g0wt4_9c/numpy_a421050192bd4ff797a7662dd0ce7bf6 11 Complete output (887 lines): 12 Running from numpy source directory. 13 numpy/random/_bounded_integers.pxd.in has not changed 14 numpy/random/_philox.pyx has not changed 15 numpy/random/_bounded_integers.pyx.in has not changed 16 numpy/random/_sfc64.pyx has not changed 17 numpy/random/_mt19937.pyx has not changed 18 numpy/random/bit_generator.pyx has not changed 19 Processing numpy/random/_bounded_integers.pyx 20 numpy/random/mtrand.pyx has not changed 21 numpy/random/_generator.pyx has not changed 22 numpy/random/_pcg64.pyx has not changed 23 numpy/random/_common.pyx has not changed 24 Cythonizing sources 25 blas_opt_info: 26 blas_mkl_info: 27 customize UnixCCompiler 28 libraries mkl_rt not found in 29 30 31省略 32 33 34include altivec.h explicitly 35 clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly 36 error: Command "clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/opt/homebrew/include -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/local/opt/zlib/include -I/usr/local/opt/bzip2/include -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-11-arm64-3.9/numpy/core/src/umath -Ibuild/src.macosx-11-arm64-3.9/numpy/core/src/npymath -Ibuild/src.macosx-11-arm64-3.9/numpy/core/src/common -Inumpy/core/include -Ibuild/src.macosx-11-arm64-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/opt/homebrew/include -I/opt/homebrew/opt/openssl@1.1/include -I/opt/homebrew/opt/sqlite/include -I/opt/homebrew/Cellar/python@3.9/3.9.1_4/Frameworks/Python.framework/Versions/3.9/include/python3.9 -Ibuild/src.macosx-11-arm64-3.9/numpy/core/src/common -Ibuild/src.macosx-11-arm64-3.9/numpy/core/src/npymath -c numpy/core/src/multiarray/alloc.c -o build/temp.macosx-11-arm64-3.9/numpy/core/src/multiarray/alloc.o -MMD -MF build/temp.macosx-11-arm64-3.9/numpy/core/src/multiarray/alloc.o.d -faltivec -I/System/Library/Frameworks/vecLib.framework/Headers" failed with exit status 1 37 ---------------------------------------- 38 ERROR: Failed building wheel for numpy 39Failed to build numpy 40ERROR: Could not build wheels for numpy which use PEP 517 and cannot be installed directly
##試したこと
terminal
1pip3 install --upgrade pip setuptools wheel
どなたかお願いしますm(_ _)m
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2021/01/14 09:49
2021/01/14 13:23