I install pandas using pip install pandas or pip3 install pandas. I get following infinite like error :
(Note : I run these installations in virtualenv, created using 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('"'"'rn'"'"', '"'"'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.
I have updated my pip version.
I tried to reinstall xcode command line tools again. xcode-select --install
I installed xcode.
Tried to update setup tools pip3 install --upgrade setuptools.
I tried all solutions of this question : this SO solution
Nothing seems to work, and I’m exhausted. Mac updates are worst. This is happening after I updated my mac last night.
I have also installed cython using pip install cython.
Hi,
When trying to install Velocyto on macOS 10.14.4 (Mojave) I receive the following error:
Collecting velocyto
Using cached https://files.pythonhosted.org/packages/81/66/e8fff9d3b824fd99c0f678c47c740fec058ce2d9a0cfdf11b114ea8889f2/velocyto-0.17.17.tar.gz
Requirement already satisfied: numpy in /usr/local/lib/python3.7/site-packages (from velocyto) (1.16.3)
Requirement already satisfied: scipy in /usr/local/lib/python3.7/site-packages (from velocyto) (1.2.1)
Requirement already satisfied: cython in /usr/local/lib/python3.7/site-packages (from velocyto) (0.29.7)
Requirement already satisfied: numba in /usr/local/lib/python3.7/site-packages (from velocyto) (0.43.1)
Requirement already satisfied: matplotlib in /usr/local/lib/python3.7/site-packages (from velocyto) (3.0.3)
Requirement already satisfied: scikit-learn in /usr/local/lib/python3.7/site-packages (from velocyto) (0.20.3)
Requirement already satisfied: h5py in /usr/local/lib/python3.7/site-packages (from velocyto) (2.9.0)
Requirement already satisfied: loompy in /usr/local/lib/python3.7/site-packages (from velocyto) (2.0.17)
Requirement already satisfied: pysam in /usr/local/lib/python3.7/site-packages (from velocyto) (0.15.2)
Requirement already satisfied: Click in /usr/local/lib/python3.7/site-packages (from velocyto) (7.0)
Requirement already satisfied: pandas in /usr/local/lib/python3.7/site-packages (from velocyto) (0.24.2)
Requirement already satisfied: llvmlite>=0.28.0dev0 in /usr/local/lib/python3.7/site-packages (from numba->velocyto) (0.28.0)
Requirement already satisfied: python-dateutil>=2.1 in /usr/local/lib/python3.7/site-packages (from matplotlib->velocyto) (2.8.0)
Requirement already satisfied: cycler>=0.10 in /usr/local/lib/python3.7/site-packages (from matplotlib->velocyto) (0.10.0)
Requirement already satisfied: kiwisolver>=1.0.1 in /usr/local/lib/python3.7/site-packages (from matplotlib->velocyto) (1.0.1)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in /usr/local/lib/python3.7/site-packages (from matplotlib->velocyto) (2.4.0)
Requirement already satisfied: six in /usr/local/lib/python3.7/site-packages (from h5py->velocyto) (1.12.0)
Requirement already satisfied: setuptools in /usr/local/lib/python3.7/site-packages (from loompy->velocyto) (40.8.0)
Requirement already satisfied: pytz>=2011k in /usr/local/lib/python3.7/site-packages (from pandas->velocyto) (2019.1)
Building wheels for collected packages: velocyto
Building wheel for velocyto (setup.py) ... error
Complete output from command /usr/local/opt/python/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/m5/xjs7y13n2_s81sxlztjk1z7h0000gn/T/pip-install-gn6cymm9/velocyto/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /private/var/folders/m5/xjs7y13n2_s81sxlztjk1z7h0000gn/T/pip-wheel-gyph1018 --python-tag cp37:
['-c', 'bdist_wheel', '-d', '/private/var/folders/m5/xjs7y13n2_s81sxlztjk1z7h0000gn/T/pip-wheel-gyph1018', '--python-tag', 'cp37']
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.14-x86_64-3.7
creating build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/transcript_model.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/diffusion.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/metadata.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/analysis.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/molitem.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/_version.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/neighbors.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/constants.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/estimation.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/__init__.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/feature.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/logic.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/indexes.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/utils.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/gene_info.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/r_interface.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/segment_match.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/counter.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/serialization.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/read.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
creating build/lib.macosx-10.14-x86_64-3.7/velocyto/commands
copying velocyto/commands/velocyto.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto/commands
copying velocyto/commands/run.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto/commands
copying velocyto/commands/__init__.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto/commands
copying velocyto/commands/run_smartseq2.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto/commands
copying velocyto/commands/dropest_bc_correct.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto/commands
copying velocyto/commands/run_dropest.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto/commands
copying velocyto/commands/run10x.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto/commands
copying velocyto/commands/_run.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto/commands
running build_ext
building 'velocyto.speedboosted' extension
creating build/temp.macosx-10.14-x86_64-3.7
creating build/temp.macosx-10.14-x86_64-3.7/velocyto
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c velocyto/speedboosted.c -o build/temp.macosx-10.14-x86_64-3.7/velocyto/speedboosted.o -fopenmp -ffast-math
velocyto/speedboosted.c:613:10: fatal error: 'numpy/arrayobject.h' file not found
#include "numpy/arrayobject.h"
^~~~~~~~~~~~~~~~~~~~~
1 error generated.
error: command 'clang' failed with exit status 1
----------------------------------------
Failed building wheel for velocyto
Running setup.py clean for velocyto
Failed to build velocyto
Installing collected packages: velocyto
Running setup.py install for velocyto ... error
Complete output from command /usr/local/opt/python/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/m5/xjs7y13n2_s81sxlztjk1z7h0000gn/T/pip-install-gn6cymm9/velocyto/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/m5/xjs7y13n2_s81sxlztjk1z7h0000gn/T/pip-record-hpsa6hb2/install-record.txt --single-version-externally-managed --compile:
['-c', 'install', '--record', '/private/var/folders/m5/xjs7y13n2_s81sxlztjk1z7h0000gn/T/pip-record-hpsa6hb2/install-record.txt', '--single-version-externally-managed', '--compile']
running install
running build
running build_py
creating build
creating build/lib.macosx-10.14-x86_64-3.7
creating build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/transcript_model.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/diffusion.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/metadata.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/analysis.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/molitem.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/_version.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/neighbors.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/constants.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/estimation.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/__init__.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/feature.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/logic.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/indexes.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/utils.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/gene_info.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/r_interface.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/segment_match.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/counter.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/serialization.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
copying velocyto/read.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto
creating build/lib.macosx-10.14-x86_64-3.7/velocyto/commands
copying velocyto/commands/velocyto.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto/commands
copying velocyto/commands/run.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto/commands
copying velocyto/commands/__init__.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto/commands
copying velocyto/commands/run_smartseq2.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto/commands
copying velocyto/commands/dropest_bc_correct.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto/commands
copying velocyto/commands/run_dropest.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto/commands
copying velocyto/commands/run10x.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto/commands
copying velocyto/commands/_run.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto/commands
running build_ext
building 'velocyto.speedboosted' extension
creating build/temp.macosx-10.14-x86_64-3.7
creating build/temp.macosx-10.14-x86_64-3.7/velocyto
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c velocyto/speedboosted.c -o build/temp.macosx-10.14-x86_64-3.7/velocyto/speedboosted.o -fopenmp -ffast-math
velocyto/speedboosted.c:613:10: fatal error: 'numpy/arrayobject.h' file not found
#include "numpy/arrayobject.h"
^~~~~~~~~~~~~~~~~~~~~
1 error generated.
error: command 'clang' failed with exit status 1
----------------------------------------
Command "/usr/local/opt/python/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/m5/xjs7y13n2_s81sxlztjk1z7h0000gn/T/pip-install-gn6cymm9/velocyto/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/m5/xjs7y13n2_s81sxlztjk1z7h0000gn/T/pip-record-hpsa6hb2/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/m5/xjs7y13n2_s81sxlztjk1z7h0000gn/T/pip-install-gn6cymm9/velocyto/
I installed all dependencies using
conda install numpy scipy cython numba matplotlib scikit-learn h5py click
As well as pysam using pip and all seem to be installed correctly.
I can’t seem to find a solution in any of the other posts about installation errors.
Any help would be much appreciated.
Содержание
- Mac OS Mojave installation error — error: command ‘clang’ failed with exit status 1 #191
- Comments
- fail install on mac os 10.13.3 (command ‘clang’ failed with exit status 1) #5653
- Comments
- Versions
- Description
- Code and Logs
- Install Kivy 🦖
- error: command ‘clang’ failed with exit status 1 #1105
- Comments
- OS / Environment (where do you run Algo on)
- Summary of the problem
- Steps to reproduce the behavior
- Full log
Mac OS Mojave installation error — error: command ‘clang’ failed with exit status 1 #191
When trying to install Velocyto on macOS 10.14.4 (Mojave) I receive the following error:
1 error generated. error: command ‘clang’ failed with exit status 1 —————————————- Failed building wheel for velocyto Running setup.py clean for velocyto Failed to build velocyto Installing collected packages: velocyto Running setup.py install for velocyto . error Complete output from command /usr/local/opt/python/bin/python3.7 -u -c «import setuptools, tokenize;__file__=’/private/var/folders/m5/xjs7y13n2_s81sxlztjk1z7h0000gn/T/pip-install-gn6cymm9/velocyto/setup.py’;f=getattr(tokenize, ‘open’, open)(__file__);code=f.read().replace(‘rn’, ‘n’);f.close();exec(compile(code, __file__, ‘exec’))» install —record /private/var/folders/m5/xjs7y13n2_s81sxlztjk1z7h0000gn/T/pip-record-hpsa6hb2/install-record.txt —single-version-externally-managed —compile: [‘-c’, ‘install’, ‘—record’, ‘/private/var/folders/m5/xjs7y13n2_s81sxlztjk1z7h0000gn/T/pip-record-hpsa6hb2/install-record.txt’, ‘—single-version-externally-managed’, ‘—compile’] running install running build running build_py creating build creating build/lib.macosx-10.14-x86_64-3.7 creating build/lib.macosx-10.14-x86_64-3.7/velocyto copying velocyto/transcript_model.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto copying velocyto/diffusion.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto copying velocyto/metadata.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto copying velocyto/analysis.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto copying velocyto/molitem.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto copying velocyto/_version.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto copying velocyto/neighbors.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto copying velocyto/constants.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto copying velocyto/estimation.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto copying velocyto/__init__.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto copying velocyto/feature.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto copying velocyto/logic.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto copying velocyto/indexes.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto copying velocyto/utils.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto copying velocyto/gene_info.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto copying velocyto/r_interface.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto copying velocyto/segment_match.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto copying velocyto/counter.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto copying velocyto/serialization.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto copying velocyto/read.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto creating build/lib.macosx-10.14-x86_64-3.7/velocyto/commands copying velocyto/commands/velocyto.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto/commands copying velocyto/commands/run.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto/commands copying velocyto/commands/__init__.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto/commands copying velocyto/commands/run_smartseq2.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto/commands copying velocyto/commands/dropest_bc_correct.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto/commands copying velocyto/commands/run_dropest.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto/commands copying velocyto/commands/run10x.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto/commands copying velocyto/commands/_run.py -> build/lib.macosx-10.14-x86_64-3.7/velocyto/commands running build_ext building ‘velocyto.speedboosted’ extension creating build/temp.macosx-10.14-x86_64-3.7 creating build/temp.macosx-10.14-x86_64-3.7/velocyto clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c velocyto/speedboosted.c -o build/temp.macosx-10.14-x86_64-3.7/velocyto/speedboosted.o -fopenmp -ffast-math velocyto/speedboosted.c:613:10: fatal error: ‘numpy/arrayobject.h’ file not found #include «numpy/arrayobject.h» ^
1 error generated. error: command ‘clang’ failed with exit status 1 —————————————- Command «/usr/local/opt/python/bin/python3.7 -u -c «import setuptools, tokenize;__file__=’/private/var/folders/m5/xjs7y13n2_s81sxlztjk1z7h0000gn/T/pip-install-gn6cymm9/velocyto/setup.py’;f=getattr(tokenize, ‘open’, open)(__file__);code=f.read().replace(‘rn’, ‘n’);f.close();exec(compile(code, __file__, ‘exec’))» install —record /private/var/folders/m5/xjs7y13n2_s81sxlztjk1z7h0000gn/T/pip-record-hpsa6hb2/install-record.txt —single-version-externally-managed —compile» failed with error code 1 in /private/var/folders/m5/xjs7y13n2_s81sxlztjk1z7h0000gn/T/pip-install-gn6cymm9/velocyto/»>
I installed all dependencies using
As well as pysam using pip and all seem to be installed correctly.
I can’t seem to find a solution in any of the other posts about installation errors.
Источник
fail install on mac os 10.13.3 (command ‘clang’ failed with exit status 1) #5653
Versions
- Python: 3.6
- OS: macos 10.13.3
- Kivy: latest stable
- Kivy installation method: homebrew with pip
Description
problem like this #5400
Code and Logs
The text was updated successfully, but these errors were encountered:
👋 Thanks for opening your first issue here! Be sure to follow the issue template!
You must have homebrew and Python 3.6 (with pip) already installed
Install Kivy 🦖
You need to install all the requirements for Kivy (Gstreamer, SDL2, etc.)
Don’t forget to add the gst-plugins with libvorbis for play .mp3 and .ogg files !
Now install Kivy, I don’t know why but only the dev version is ok 🙈
🎉 Successfully installed Kivy-1.10.1.dev0 🎉
Tell me if you have other problems.
The error you report is due to a breaking change in sdl2-mixer v2.0.2. A fix has been merged to master branch, but not made it to stable release yet. You also cannot build Kivy stable with Cython version 0.26 (I think it needs 0.25). The simplest fix for both issues is:
pip install kivy==master does not work for me. I get the error
@npryce I’m not sure it’s possible to do it like that. If you specify
== doesn’t pip just look for a package on PyPI? I don’t think it knows about GitHub (or any other repository). If you want to point pip to the master branch here, you need to do something like:
or what I myself prefer:
also, if you install the latter with pip -e then the repository will be installed in «developer» or «editable» mode, and you can fetch new revisions without reinstalling (you’d still have to rebuild if there are changes to Cython files in a revision).
Note: in any case you need a suitable version of Cython before they can be installed like this.
Thanks for your response. That was very helpful and I have Kivy installed now.
Even though I tried all the steps above I have the same problem still.
Python: 3.6.5
OS: macOS Sierra 10.12.6
Kivy: latest stable
Kivy installation method: homebrew with pip
Источник
error: command ‘clang’ failed with exit status 1 #1105
OS / Environment (where do you run Algo on)
Summary of the problem
When running step four:
1 error generated. error: command ‘clang’ failed with exit status 1 —————————————- Command «/Users/gilani/Sandbox/algo/env/bin/python -u -c «import setuptools, tokenize;__file__=’/private/var/folders/wm/tq04wt657xn9cbpxjwk7s7380000gn/T/pip-install-UFN4CR/pycrypto/setup.py’;f=getattr(tokenize, ‘open’, open)(__file__);code=f.read().replace(‘rn’, ‘n’);f.close();exec(compile(code, __file__, ‘exec’))» install —record /private/var/folders/wm/tq04wt657xn9cbpxjwk7s7380000gn/T/pip-record-7vjHYs/install-record.txt —single-version-externally-managed —compile —install-headers /Users/gilani/Sandbox/algo/env/bin/../include/site/python2.7/pycrypto» failed with error code 1 in /private/var/folders/wm/tq04wt657xn9cbpxjwk7s7380000gn/T/pip-install-UFN4CR/pycrypto/»>
Steps to reproduce the behavior
Follow the documentation on MacOS
Full log
I don’t even get to the ./algo stage yet. I had the foresight to run an asciicast. here: https://asciinema.org/a/YX6KHsqVoGdXwHAjVtLYPz7SO
The beginning of the log gets clipped, see the asciicast for all the information. In the meantime:
=1.1 (from azure-mgmt-dns =1.0.1; extra == «azure»->ansible[azure]==2.5.2->-r requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/91/66/6636001c0b6be5423f4bbaffe5febbf9eda39bd1941eb39a73504d8f6f71/azure_common-1.1.14-py2.py3-none-any.whl Collecting pyparsing>=2.0.2 (from packaging; extra == «azure»->ansible[azure]==2.5.2->-r requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/6a/8a/718fd7d3458f9fab8e67186b00abdd345b639976bc7fb3ae722e1b026a50/pyparsing-2.2.0-py2.py3-none-any.whl Collecting python-dateutil (from azure-storage =0.35.1; extra == «azure»->ansible[azure]==2.5.2->-r requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/cf/f5/af2b09c957ace60dcfac112b669c45c8c97e32f94aa8b56da4c6d1682825/python_dateutil-2.7.3-py2.py3-none-any.whl Collecting azure-nspkg>=2.0.0 (from azure-storage =0.35.1; extra == «azure»->ansible[azure]==2.5.2->-r requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/cd/a0/76ca6659ae9afd7567fdbb5b9c85e9c9a0b48238cfcacd92525484408f66/azure_nspkg-2.0.0-py2.py3-none-any.whl Collecting urllib3 =1.21.1 (from requests[security]; extra == «azure»->ansible[azure]==2.5.2->-r requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/bd/c9/6fdd990019071a4a32a5e7cb78a1d92c53851ef4f56f62a3486e6a7d8ffb/urllib3-1.23-py2.py3-none-any.whl Collecting chardet =3.0.2 (from requests[security]; extra == «azure»->ansible[azure]==2.5.2->-r requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl Collecting certifi>=2017.4.17 (from requests[security]; extra == «azure»->ansible[azure]==2.5.2->-r requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/df/f7/04fee6ac349e915b82171f8e23cee63644d83663b34c539f7a09aed18f9e/certifi-2018.8.24-py2.py3-none-any.whl Collecting isodate>=0.6.0 (from msrest!=0.4.15; extra == «azure»->ansible[azure]==2.5.2->-r requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/9b/9f/b36f7774ff5ea8e428fdcfc4bb332c39ee5b9362ddd3d40d9516a55221b2/isodate-0.6.0-py2.py3-none-any.whl Collecting typing; python_version ansible[azure]==2.5.2->-r requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/cc/3e/29f92b7aeda5b078c86d14f550bf85cff809042e3429ace7af6193c3bc9f/typing-3.6.6-py2-none-any.whl Collecting requests-oauthlib>=0.5.0 (from msrest!=0.4.15; extra == «azure»->ansible[azure]==2.5.2->-r requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/94/e7/c250d122992e1561690d9c0f7856dadb79d61fd4bdd0e598087dce607f6c/requests_oauthlib-1.0.0-py2.py3-none-any.whl Requirement already satisfied: pip in ./env/lib/python2.7/site-packages (from azure-cli-core =2.0.12; extra == «azure»->ansible[azure]==2.5.2->-r requirements.txt (line 3)) (18.0) Collecting pygments (from azure-cli-core =2.0.12; extra == «azure»->ansible[azure]==2.5.2->-r requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/02/ee/b6e02dc6529e82b75bb06823ff7d005b141037cb1416b10c6f00fc419dca/Pygments-2.2.0-py2.py3-none-any.whl Collecting humanfriendly>=4.7 (from azure-cli-core =2.0.12; extra == «azure»->ansible[azure]==2.5.2->-r requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/fb/34/1e80e4a06020f7dfc7eee11387e400435236f992f80eaa6ed9b3d8252211/humanfriendly-4.16.1-py2.py3-none-any.whl Collecting adal>=1.0.2 (from azure-cli-core =2.0.12; extra == «azure»->ansible[azure]==2.5.2->-r requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/15/2b/8f674c2a20bb2a55f8f1c8fb7a458c9b513409b2cfc42f73e4cbc1ee757e/adal-1.1.0-py2.py3-none-any.whl Collecting antlr4-python3-runtime (from azure-cli-core =2.0.12; extra == «azure»->ansible[azure]==2.5.2->-r requirements.txt (line 3)) Collecting tabulate =0.7.7 (from azure-cli-core =2.0.12; extra == «azure»->ansible[azure]==2.5.2->-r requirements.txt (line 3)) Collecting azure-cli-telemetry (from azure-cli-core =2.0.12; extra == «azure»->ansible[azure]==2.5.2->-r requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/71/4c/da5ebe9300ecdc850031372f81229383c46a70e83dee8e77f58aa6fd0546/azure_cli_telemetry-1.0.0-py2.py3-none-any.whl Collecting wheel==0.30.0 (from azure-cli-core =2.0.12; extra == «azure»->ansible[azure]==2.5.2->-r requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/0c/80/16a85b47702a1f47a63c104c91abdd0a6704ee8ae3b4ce4afc49bc39f9d9/wheel-0.30.0-py2.py3-none-any.whl Collecting argcomplete>=1.8.0 (from azure-cli-core =2.0.12; extra == «azure»->ansible[azure]==2.5.2->-r requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/31/88/ba8d8684a8a27749250c66ff7c2b408fdbc29b50da61200338ff9b2607bf/argcomplete-1.9.4-py2.py3-none-any.whl Collecting knack==0.4.2 (from azure-cli-core =2.0.12; extra == «azure»->ansible[azure]==2.5.2->-r requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/bc/49/1c69f851ea9d17db920d07dee62f2be3bdca52ab0a65728324c797c99285/knack-0.4.2-py2.py3-none-any.whl Collecting PyJWT (from azure-cli-core =2.0.12; extra == «azure»->ansible[azure]==2.5.2->-r requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/93/d1/3378cc8184a6524dc92993090ee8b4c03847c567e298305d6cf86987e005/PyJWT-1.6.4-py2.py3-none-any.whl Collecting azure-cli-nspkg>=2.0.0 (from azure-cli-core =2.0.12; extra == «azure»->ansible[azure]==2.5.2->-r requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/a7/85/601ef6484bf7a722daa76a4383c4ccfd4980b74ed6c2895392f53ed210d5/azure_cli_nspkg-3.0.3-py2.py3-none-any.whl Collecting colorama>=0.3.9 (from azure-cli-core =2.0.12; extra == «azure»->ansible[azure]==2.5.2->-r requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/db/c8/7dcf9dbcb22429512708fe3a547f8b6101c0d02137acbd892505aee57adf/colorama-0.3.9-py2.py3-none-any.whl Collecting keyring>=12.0.2 (from msrestazure =0.4.11; extra == «azure»->ansible[azure]==2.5.2->-r requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/88/a8/341fa4686e98bf10289eb4eaea89e8176b93c1e38de52e3c42d9112baae1/keyring-13.2.1-py2.py3-none-any.whl Collecting futures =2.2.0; python_version == «2.6» or python_version == «2.7» (from s3transfer =0.1.10->boto3->-r requirements.txt (line 6)) Using cached https://files.pythonhosted.org/packages/2d/99/b2c4e9d5a30f6471e410a146232b4118e697fa3ffc06d6a65efde84debd0/futures-3.2.0-py2-none-any.whl Collecting docutils>=0.10 (from botocore =1.11.7->boto3->-r requirements.txt (line 6)) Using cached https://files.pythonhosted.org/packages/50/09/c53398e0005b11f7ffb27b7aa720c617aba53be4fb4f4f3f06b9b5c60f28/docutils-0.14-py2-none-any.whl Collecting os-service-types>=1.2.0 (from openstacksdk>=0.15.0->shade->-r requirements.txt (line 11)) Collecting appdirs>=1.3.0 (from openstacksdk>=0.15.0->shade->-r requirements.txt (line 11)) Using cached https://files.pythonhosted.org/packages/56/eb/810e700ed1349edde4cbdc1b2a21e28cdf115f9faf263f6bbf8447c1abf3/appdirs-1.4.3-py2.py3-none-any.whl Collecting jsonpatch!=1.20,>=1.16 (from openstacksdk>=0.15.0->shade->-r requirements.txt (line 11)) Using cached https://files.pythonhosted.org/packages/a0/e6/d50d526ae2218b765ddbdb2dda14d65e19f501ce07410b375bc43ad20b7a/jsonpatch-1.23-py2.py3-none-any.whl Collecting munch>=2.1.0 (from openstacksdk>=0.15.0->shade->-r requirements.txt (line 11)) Collecting dogpile.cache>=0.6.2 (from openstacksdk>=0.15.0->shade->-r requirements.txt (line 11)) Collecting keystoneauth1>=3.8.0 (from openstacksdk>=0.15.0->shade->-r requirements.txt (line 11)) Using cached https://files.pythonhosted.org/packages/24/23/2b7624d229567cc52cfe6623f9f54a2616ea3ebb0a1e9d42a4358be7266b/keystoneauth1-3.10.0-py2.py3-none-any.whl Collecting requestsexceptions>=1.2.0 (from openstacksdk>=0.15.0->shade->-r requirements.txt (line 11)) Using cached https://files.pythonhosted.org/packages/01/8c/49ca60ea8c907260da4662582c434bec98716177674e88df3fd340acf06d/requestsexceptions-1.4.0-py2.py3-none-any.whl Collecting deprecation>=1.0 (from openstacksdk>=0.15.0->shade->-r requirements.txt (line 11)) Using cached https://files.pythonhosted.org/packages/9e/87/2e497672bf5157740f36233a8d2d59266dd083887ccdc5f3b6979e8c3a46/deprecation-2.0.5-py2-none-any.whl Collecting netifaces>=0.10.4 (from openstacksdk>=0.15.0->shade->-r requirements.txt (line 11)) Using cached https://files.pythonhosted.org/packages/33/f5/52d1b3ac7390293bfc2ecc321112693605607920159660337fffe09fa8eb/netifaces-0.10.7-cp27-cp27m-macosx_10_13_x86_64.whl Collecting iso8601>=0.1.11 (from openstacksdk>=0.15.0->shade->-r requirements.txt (line 11)) Using cached https://files.pythonhosted.org/packages/ef/57/7162609dab394d38bbc7077b7ba0a6f10fb09d8b7701ea56fa1edc0c4345/iso8601-0.1.12-py2.py3-none-any.whl Collecting decorator>=3.4.0 (from openstacksdk>=0.15.0->shade->-r requirements.txt (line 11)) Using cached https://files.pythonhosted.org/packages/bc/bb/a24838832ba35baf52f32ab1a49b906b5f82fb7c76b2f6a7e35e140bac30/decorator-4.3.0-py2.py3-none-any.whl Collecting pycparser (from cffi!=1.11.3,>=1.7->cryptography->SecretStorage -r requirements.txt (line 2)) Collecting oauthlib>=0.6.2 (from requests-oauthlib>=0.5.0->msrest!=0.4.15; extra == «azure»->ansible[azure]==2.5.2->-r requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/e6/d1/ddd9cfea3e736399b97ded5c2dd62d1322adef4a72d816f1ed1049d6a179/oauthlib-2.1.0-py2.py3-none-any.whl Collecting monotonic; python_version == «2.6» or python_version == «2.7» or python_version == «3.0» or python_version == «3.1» or python_version == «3.2» (from humanfriendly>=4.7->azure-cli-core =2.0.12; extra == «azure»->ansible[azure]==2.5.2->-r requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/ac/aa/063eca6a416f397bd99552c534c6d11d57f58f2e94c14780f3bbf818c4cf/monotonic-1.5-py2.py3-none-any.whl Collecting portalocker==1.2.1 (from azure-cli-telemetry->azure-cli-core =2.0.12; extra == «azure»->ansible[azure]==2.5.2->-r requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/57/41/05e79e5516db1cc0c967b3202388cde729f871c871b0a07bf24ff11adfcf/portalocker-1.2.1-py2.py3-none-any.whl Collecting applicationinsights>=0.11.1 (from azure-cli-telemetry->azure-cli-core =2.0.12; extra == «azure»->ansible[azure]==2.5.2->-r requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/cc/2d/d4db42d661c8a2ebd25bbbff7513ba3604ce11c1e76f9543543de1754f44/applicationinsights-0.11.6-py2.py3-none-any.whl Collecting entrypoints (from keyring>=12.0.2->msrestazure =0.4.11; extra == «azure»->ansible[azure]==2.5.2->-r requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/cc/8b/4eefa9b47f1910b3d2081da67726b066e379b04ca897acfe9f92bac56147/entrypoints-0.2.3-py2.py3-none-any.whl Collecting jsonpointer>=1.9 (from jsonpatch!=1.20,>=1.16->openstacksdk>=0.15.0->shade->-r requirements.txt (line 11)) Using cached https://files.pythonhosted.org/packages/18/b0/a80d29577c08eea401659254dfaed87f1af45272899e1812d7e01b679bc5/jsonpointer-2.0-py2.py3-none-any.whl Collecting stevedore>=1.20.0 (from keystoneauth1>=3.8.0->openstacksdk>=0.15.0->shade->-r requirements.txt (line 11)) Using cached https://files.pythonhosted.org/packages/a1/d9/93a975469c53a9ee85de9ec0deb12345aa777748b4c263860668592344fe/stevedore-1.29.0-py2.py3-none-any.whl Collecting configparser>=3.5; python_version == «2.7» (from entrypoints->keyring>=12.0.2->msrestazure =0.4.11; extra == «azure»->ansible[azure]==2.5.2->-r requirements.txt (line 3)) Building wheels for collected packages: pycrypto Running setup.py bdist_wheel for pycrypto . error Complete output from command /Users/gilani/Sandbox/algo/env/bin/python -u -c «import setuptools, tokenize;__file__=’/private/var/folders/wm/tq04wt657xn9cbpxjwk7s7380000gn/T/pip-install-UFN4CR/pycrypto/setup.py’;f=getattr(tokenize, ‘open’, open)(__file__);code=f.read().replace(‘rn’, ‘n’);f.close();exec(compile(code, __file__, ‘exec’))» bdist_wheel -d /private/var/folders/wm/tq04wt657xn9cbpxjwk7s7380000gn/T/pip-wheel-YWPFcq —python-tag cp27: running bdist_wheel running build running build_py creating build creating build/lib.macosx-10.13-x86_64-2.7 creating build/lib.macosx-10.13-x86_64-2.7/Crypto copying lib/Crypto/pct_warnings.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto copying lib/Crypto/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto creating build/lib.macosx-10.13-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/MD2.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/SHA512.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/SHA384.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/SHA256.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/hashalgo.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/SHA.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/SHA224.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/MD4.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/HMAC.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/MD5.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/RIPEMD.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Hash creating build/lib.macosx-10.13-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/CAST.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/ARC4.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/AES.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/PKCS1_v1_5.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/DES3.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/XOR.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/Blowfish.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/ARC2.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/PKCS1_OAEP.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/DES.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/blockalgo.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Cipher creating build/lib.macosx-10.13-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/py21compat.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/py3compat.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/number.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/winrandom.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/_number_new.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/RFC1751.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/randpool.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/Counter.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/asn1.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Util creating build/lib.macosx-10.13-x86_64-2.7/Crypto/Random copying lib/Crypto/Random/_UserFriendlyRNG.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Random copying lib/Crypto/Random/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Random copying lib/Crypto/Random/random.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Random creating build/lib.macosx-10.13-x86_64-2.7/Crypto/Random/Fortuna copying lib/Crypto/Random/Fortuna/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Random/Fortuna copying lib/Crypto/Random/Fortuna/SHAd256.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Random/Fortuna copying lib/Crypto/Random/Fortuna/FortunaGenerator.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Random/Fortuna copying lib/Crypto/Random/Fortuna/FortunaAccumulator.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Random/Fortuna creating build/lib.macosx-10.13-x86_64-2.7/Crypto/Random/OSRNG copying lib/Crypto/Random/OSRNG/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Random/OSRNG copying lib/Crypto/Random/OSRNG/nt.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Random/OSRNG copying lib/Crypto/Random/OSRNG/posix.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Random/OSRNG copying lib/Crypto/Random/OSRNG/rng_base.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Random/OSRNG copying lib/Crypto/Random/OSRNG/fallback.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Random/OSRNG creating build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest copying lib/Crypto/SelfTest/st_common.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest copying lib/Crypto/SelfTest/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest creating build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_AES.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_CAST.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_ARC4.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_pkcs1_oaep.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_DES3.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/common.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_DES.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_ARC2.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_Blowfish.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_XOR.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_pkcs1_15.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Cipher creating build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_SHA224.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_MD2.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_RIPEMD.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_MD4.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/common.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_SHA512.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_MD5.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_SHA384.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_SHA.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_SHA256.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_HMAC.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Hash creating build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Protocol copying lib/Crypto/SelfTest/Protocol/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Protocol copying lib/Crypto/SelfTest/Protocol/test_AllOrNothing.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Protocol copying lib/Crypto/SelfTest/Protocol/test_rfc1751.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Protocol copying lib/Crypto/SelfTest/Protocol/test_chaffing.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Protocol copying lib/Crypto/SelfTest/Protocol/test_KDF.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Protocol creating build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/PublicKey copying lib/Crypto/SelfTest/PublicKey/test_RSA.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/PublicKey copying lib/Crypto/SelfTest/PublicKey/test_importKey.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/PublicKey copying lib/Crypto/SelfTest/PublicKey/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/PublicKey copying lib/Crypto/SelfTest/PublicKey/test_DSA.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/PublicKey copying lib/Crypto/SelfTest/PublicKey/test_ElGamal.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/PublicKey creating build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Random copying lib/Crypto/SelfTest/Random/test_rpoolcompat.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Random copying lib/Crypto/SelfTest/Random/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Random copying lib/Crypto/SelfTest/Random/test_random.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Random copying lib/Crypto/SelfTest/Random/test__UserFriendlyRNG.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Random creating build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Random/Fortuna copying lib/Crypto/SelfTest/Random/Fortuna/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Random/Fortuna copying lib/Crypto/SelfTest/Random/Fortuna/test_FortunaGenerator.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Random/Fortuna copying lib/Crypto/SelfTest/Random/Fortuna/test_FortunaAccumulator.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Random/Fortuna copying lib/Crypto/SelfTest/Random/Fortuna/test_SHAd256.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Random/Fortuna creating build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Random/OSRNG copying lib/Crypto/SelfTest/Random/OSRNG/test_posix.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Random/OSRNG copying lib/Crypto/SelfTest/Random/OSRNG/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Random/OSRNG copying lib/Crypto/SelfTest/Random/OSRNG/test_generic.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Random/OSRNG copying lib/Crypto/SelfTest/Random/OSRNG/test_fallback.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Random/OSRNG copying lib/Crypto/SelfTest/Random/OSRNG/test_nt.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Random/OSRNG copying lib/Crypto/SelfTest/Random/OSRNG/test_winrandom.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Random/OSRNG creating build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Util copying lib/Crypto/SelfTest/Util/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Util copying lib/Crypto/SelfTest/Util/test_winrandom.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Util copying lib/Crypto/SelfTest/Util/test_Counter.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Util copying lib/Crypto/SelfTest/Util/test_asn1.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Util copying lib/Crypto/SelfTest/Util/test_number.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Util creating build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Signature copying lib/Crypto/SelfTest/Signature/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Signature copying lib/Crypto/SelfTest/Signature/test_pkcs1_pss.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Signature copying lib/Crypto/SelfTest/Signature/test_pkcs1_15.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Signature creating build/lib.macosx-10.13-x86_64-2.7/Crypto/Protocol copying lib/Crypto/Protocol/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Protocol copying lib/Crypto/Protocol/AllOrNothing.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Protocol copying lib/Crypto/Protocol/KDF.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Protocol copying lib/Crypto/Protocol/Chaffing.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Protocol creating build/lib.macosx-10.13-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/_slowmath.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/RSA.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/pubkey.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/_DSA.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/_RSA.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/DSA.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/ElGamal.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/PublicKey creating build/lib.macosx-10.13-x86_64-2.7/Crypto/Signature copying lib/Crypto/Signature/PKCS1_PSS.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Signature copying lib/Crypto/Signature/PKCS1_v1_5.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Signature copying lib/Crypto/Signature/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Signature running build_ext running build_configure checking for gcc. gcc checking whether the C compiler works. yes checking for C compiler default output file name. a.out checking for suffix of executables. checking whether we are cross compiling. no checking for suffix of object files. o checking whether we are using the GNU C compiler. yes checking whether gcc accepts -g. yes checking for gcc option to accept ISO C89. none needed checking for __gmpz_init in -lgmp. yes checking for __gmpz_init in -lmpir. no checking whether mpz_powm is declared. yes checking whether mpz_powm_sec is declared. yes checking how to run the C preprocessor. gcc -E checking for grep that handles long lines and -e. /usr/bin/grep checking for egrep. /usr/bin/grep -E checking for ANSI C header files. yes checking for sys/types.h. yes checking for sys/stat.h. yes checking for stdlib.h. yes checking for string.h. yes checking for memory.h. yes checking for strings.h. yes checking for inttypes.h. yes checking for stdint.h. yes checking for unistd.h. yes checking for inttypes.h. (cached) yes checking limits.h usability. yes checking limits.h presence. yes checking for limits.h. yes checking stddef.h usability. yes checking stddef.h presence. yes checking for stddef.h. yes checking for stdint.h. (cached) yes checking for stdlib.h. (cached) yes checking for string.h. (cached) yes checking wchar.h usability. yes checking wchar.h presence. yes checking for wchar.h. yes checking for inline. inline checking for int16_t. yes checking for int32_t. yes checking for int64_t. yes checking for int8_t. yes checking for size_t. yes checking for uint16_t. yes checking for uint32_t. yes checking for uint64_t. yes checking for uint8_t. yes checking for stdlib.h. (cached) yes checking for GNU libc compatible malloc. yes checking for memmove. yes checking for memset. yes configure: creating ./config.status config.status: creating src/config.h building ‘Crypto.PublicKey._fastmath’ extension creating build/temp.macosx-10.13-x86_64-2.7 creating build/temp.macosx-10.13-x86_64-2.7/src clang -fno-strict-aliasing -fno-common -dynamic -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -fwrapv -Wall -Wstrict-prototypes -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/usr/include/ -I/usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/_fastmath.c -o build/temp.macosx-10.13-x86_64-2.7/src/_fastmath.o src/_fastmath.c:36:11: fatal error: ‘gmp.h’ file not found # include ^
1 error generated. error: command ‘clang’ failed with exit status 1 —————————————- Failed building wheel for pycrypto Running setup.py clean for pycrypto Failed to build pycrypto azure-cli-core 2.0.45 has requirement azure-mgmt-resource==2.0.0, but you’ll have azure-mgmt-resource 1.2.2 which is incompatible. Installing collected packages: six, asn1crypto, enum34, pycparser, cffi, idna, ipaddress, cryptography, SecretStorage, bcrypt, pyasn1, pynacl, paramiko, PyYAML, MarkupSafe, jinja2, isodate, typing, urllib3, chardet, certifi, pyopenssl, requests, oauthlib, requests-oauthlib, msrest, PyJWT, python-dateutil, adal, configparser, entrypoints, keyring, msrestazure, azure-nspkg, azure-mgmt-nspkg, azure-common, azure-mgmt-dns, azure-mgmt-storage, pyparsing, packaging, azure-storage, azure-mgmt-containerinstance, azure-mgmt-containerservice, azure-mgmt-containerregistry, azure-mgmt-compute, azure-mgmt-resource, azure-mgmt-network, azure-mgmt-rdbms, azure-mgmt-web, azure-mgmt-sql, pygments, monotonic, humanfriendly, antlr4-python3-runtime, tabulate, azure-cli-nspkg, portalocker, applicationinsights, azure-cli-telemetry, wheel, argcomplete, jmespath, colorama, knack, azure-cli-core, azure-mgmt-keyvault, azure-mgmt-batch, ansible, dopy, boto, futures, docutils, botocore, s3transfer, boto3, apache-libcloud, pbr, os-service-types, appdirs, jsonpointer, jsonpatch, munch, dogpile.cache, stevedore, iso8601, keystoneauth1, requestsexceptions, deprecation, netifaces, decorator, openstacksdk, os-client-config, shade, pycrypto Found existing installation: wheel 0.31.1 Uninstalling wheel-0.31.1: Successfully uninstalled wheel-0.31.1 Running setup.py install for pycrypto . error Complete output from command /Users/gilani/Sandbox/algo/env/bin/python -u -c «import setuptools, tokenize;__file__=’/private/var/folders/wm/tq04wt657xn9cbpxjwk7s7380000gn/T/pip-install-UFN4CR/pycrypto/setup.py’;f=getattr(tokenize, ‘open’, open)(__file__);code=f.read().replace(‘rn’, ‘n’);f.close();exec(compile(code, __file__, ‘exec’))» install —record /private/var/folders/wm/tq04wt657xn9cbpxjwk7s7380000gn/T/pip-record-7vjHYs/install-record.txt —single-version-externally-managed —compile —install-headers /Users/gilani/Sandbox/algo/env/bin/../include/site/python2.7/pycrypto: running install running build running build_py creating build creating build/lib.macosx-10.13-x86_64-2.7 creating build/lib.macosx-10.13-x86_64-2.7/Crypto copying lib/Crypto/pct_warnings.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto copying lib/Crypto/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto creating build/lib.macosx-10.13-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/MD2.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/SHA512.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/SHA384.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/SHA256.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/hashalgo.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/SHA.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/SHA224.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/MD4.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/HMAC.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/MD5.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/RIPEMD.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Hash creating build/lib.macosx-10.13-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/CAST.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/ARC4.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/AES.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/PKCS1_v1_5.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/DES3.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/XOR.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/Blowfish.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/ARC2.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/PKCS1_OAEP.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/DES.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/blockalgo.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Cipher creating build/lib.macosx-10.13-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/py21compat.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/py3compat.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/number.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/winrandom.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/_number_new.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/RFC1751.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/randpool.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/Counter.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/asn1.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Util creating build/lib.macosx-10.13-x86_64-2.7/Crypto/Random copying lib/Crypto/Random/_UserFriendlyRNG.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Random copying lib/Crypto/Random/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Random copying lib/Crypto/Random/random.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Random creating build/lib.macosx-10.13-x86_64-2.7/Crypto/Random/Fortuna copying lib/Crypto/Random/Fortuna/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Random/Fortuna copying lib/Crypto/Random/Fortuna/SHAd256.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Random/Fortuna copying lib/Crypto/Random/Fortuna/FortunaGenerator.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Random/Fortuna copying lib/Crypto/Random/Fortuna/FortunaAccumulator.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Random/Fortuna creating build/lib.macosx-10.13-x86_64-2.7/Crypto/Random/OSRNG copying lib/Crypto/Random/OSRNG/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Random/OSRNG copying lib/Crypto/Random/OSRNG/nt.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Random/OSRNG copying lib/Crypto/Random/OSRNG/posix.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Random/OSRNG copying lib/Crypto/Random/OSRNG/rng_base.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Random/OSRNG copying lib/Crypto/Random/OSRNG/fallback.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Random/OSRNG creating build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest copying lib/Crypto/SelfTest/st_common.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest copying lib/Crypto/SelfTest/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest creating build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_AES.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_CAST.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_ARC4.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_pkcs1_oaep.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_DES3.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/common.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_DES.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_ARC2.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_Blowfish.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_XOR.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_pkcs1_15.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Cipher creating build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_SHA224.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_MD2.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_RIPEMD.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_MD4.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/common.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_SHA512.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_MD5.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_SHA384.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_SHA.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_SHA256.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_HMAC.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Hash creating build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Protocol copying lib/Crypto/SelfTest/Protocol/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Protocol copying lib/Crypto/SelfTest/Protocol/test_AllOrNothing.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Protocol copying lib/Crypto/SelfTest/Protocol/test_rfc1751.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Protocol copying lib/Crypto/SelfTest/Protocol/test_chaffing.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Protocol copying lib/Crypto/SelfTest/Protocol/test_KDF.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Protocol creating build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/PublicKey copying lib/Crypto/SelfTest/PublicKey/test_RSA.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/PublicKey copying lib/Crypto/SelfTest/PublicKey/test_importKey.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/PublicKey copying lib/Crypto/SelfTest/PublicKey/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/PublicKey copying lib/Crypto/SelfTest/PublicKey/test_DSA.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/PublicKey copying lib/Crypto/SelfTest/PublicKey/test_ElGamal.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/PublicKey creating build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Random copying lib/Crypto/SelfTest/Random/test_rpoolcompat.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Random copying lib/Crypto/SelfTest/Random/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Random copying lib/Crypto/SelfTest/Random/test_random.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Random copying lib/Crypto/SelfTest/Random/test__UserFriendlyRNG.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Random creating build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Random/Fortuna copying lib/Crypto/SelfTest/Random/Fortuna/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Random/Fortuna copying lib/Crypto/SelfTest/Random/Fortuna/test_FortunaGenerator.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Random/Fortuna copying lib/Crypto/SelfTest/Random/Fortuna/test_FortunaAccumulator.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Random/Fortuna copying lib/Crypto/SelfTest/Random/Fortuna/test_SHAd256.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Random/Fortuna creating build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Random/OSRNG copying lib/Crypto/SelfTest/Random/OSRNG/test_posix.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Random/OSRNG copying lib/Crypto/SelfTest/Random/OSRNG/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Random/OSRNG copying lib/Crypto/SelfTest/Random/OSRNG/test_generic.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Random/OSRNG copying lib/Crypto/SelfTest/Random/OSRNG/test_fallback.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Random/OSRNG copying lib/Crypto/SelfTest/Random/OSRNG/test_nt.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Random/OSRNG copying lib/Crypto/SelfTest/Random/OSRNG/test_winrandom.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Random/OSRNG creating build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Util copying lib/Crypto/SelfTest/Util/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Util copying lib/Crypto/SelfTest/Util/test_winrandom.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Util copying lib/Crypto/SelfTest/Util/test_Counter.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Util copying lib/Crypto/SelfTest/Util/test_asn1.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Util copying lib/Crypto/SelfTest/Util/test_number.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Util creating build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Signature copying lib/Crypto/SelfTest/Signature/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Signature copying lib/Crypto/SelfTest/Signature/test_pkcs1_pss.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Signature copying lib/Crypto/SelfTest/Signature/test_pkcs1_15.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/SelfTest/Signature creating build/lib.macosx-10.13-x86_64-2.7/Crypto/Protocol copying lib/Crypto/Protocol/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Protocol copying lib/Crypto/Protocol/AllOrNothing.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Protocol copying lib/Crypto/Protocol/KDF.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Protocol copying lib/Crypto/Protocol/Chaffing.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Protocol creating build/lib.macosx-10.13-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/_slowmath.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/RSA.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/pubkey.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/_DSA.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/_RSA.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/DSA.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/ElGamal.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/PublicKey creating build/lib.macosx-10.13-x86_64-2.7/Crypto/Signature copying lib/Crypto/Signature/PKCS1_PSS.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Signature copying lib/Crypto/Signature/PKCS1_v1_5.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Signature copying lib/Crypto/Signature/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/Crypto/Signature running build_ext running build_configure building ‘Crypto.PublicKey._fastmath’ extension creating build/temp.macosx-10.13-x86_64-2.7 creating build/temp.macosx-10.13-x86_64-2.7/src clang -fno-strict-aliasing -fno-common -dynamic -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -fwrapv -Wall -Wstrict-prototypes -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/usr/include/ -I/usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/_fastmath.c -o build/temp.macosx-10.13-x86_64-2.7/src/_fastmath.o src/_fastmath.c:36:11: fatal error: ‘gmp.h’ file not found # include ^
1 error generated. error: command ‘clang’ failed with exit status 1 —————————————- Command «/Users/gilani/Sandbox/algo/env/bin/python -u -c «import setuptools, tokenize;__file__=’/private/var/folders/wm/tq04wt657xn9cbpxjwk7s7380000gn/T/pip-install-UFN4CR/pycrypto/setup.py’;f=getattr(tokenize, ‘open’, open)(__file__);code=f.read().replace(‘rn’, ‘n’);f.close();exec(compile(code, __file__, ‘exec’))» install —record /private/var/folders/wm/tq04wt657xn9cbpxjwk7s7380000gn/T/pip-record-7vjHYs/install-record.txt —single-version-externally-managed —compile —install-headers /Users/gilani/Sandbox/algo/env/bin/../include/site/python2.7/pycrypto» failed with error code 1 in /private/var/folders/wm/tq04wt657xn9cbpxjwk7s7380000gn/T/pip-install-UFN4CR/pycrypto/»>
The text was updated successfully, but these errors were encountered:
Источник
Python is one of the most popular programming languages around at the moment. Not only is it extremely easy to learn, even for absolute beginners, but it’s also quite powerful, often used in applications involving AI, ML and even computer vision.
It also comes with its own package manager called Pip which helps quickly find and install any libraries that you might need. Everything considered, it’s a great package, but there are still some bugs and glitches that you might experience from time to time.
In this article, we’re talking about the “error: command ‘/user/bin/clang’ failed with exit code 1” issue when installing packages with Pip on macOS.
Also read: Fix: Python was not found; run without arguments to install
What causes this issue?
The error can be caused by a number of different problems including but not limited to the following.
- Outdated macOS version.
- Outdated Python/Pip version.
- Package availability on Pip.
- Issues with the target package itself.
How to fix this?
Here are five fixes you can try out.
Update your Mac
One of the first things you should do in such cases is to simply update your macOS installation to the latest available version. More often than not developers are aware of any such bugs and will release some sort of patch or update to address the issue.
Update Pip
Outdated Pip installations can cause a lot of problems and aren’t recommended unless explicitly required for specific reasons. However, regardless of the installed version, one of the simplest solutions to this problem is to just update Pip manually using this command.
python -m pip install --upgrade pip
Or
python3 -m pip install --upgrade pip
Update Pip dependencies
There’s also a chance that Pip’s dependencies may be causing problems. To make sure everything’s up to date, you can update setuptools and wheel using these commands once you’ve updated Pip.
pip install –upgrade wheel
pip install –upgrade setuptools
Install OpenSSL
Installing OpenSSL on macOS devices has also been known to resolve this error. To do so, simply run the command given below.
brew install openssl re2
LDFLAGS="-L$(/opt/homebrew/bin/brew --prefix openssl)/lib -L$(/opt/homebrew/bin/brew --prefix re2)/lib" CPPFLAGS="-I$(/opt/homebrew/bin/brew --prefix openssl)/include -I$(/opt/homebrew/bin/brew --prefix re2)/include" GRPC_BUILD_WITH_BORING_SSL_ASM="" GRPC_PYTHON_BUILD_SYSTEM_RE2=true GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=true GRPC_PYTHON_BUILD_SYSTEM_ZLIB=true pip install grpcio
Try a virtual environment
If you don’t want to mess up your existing Pip installation, you can also try and run the project inside a virtual environment using virtualenv to isolate your Python installation and running the code as well as installing the required libraries in an isolated environment.
Also read: How to fix Javascript error: ipython is not defined?
Someone who writes/edits/shoots/hosts all things tech and when he’s not, streams himself racing virtual cars.
You can contact him here: [email protected]
I have been having intermittent installation errors with Python packages on my Mac. They occur on anything Python 3.7.x or 3.8.x after I set up a virtual environment and pip install after that (note that I manage my Python versions with pyenv).
~/Develop/chaoss
❯ which python
/Users/mbbroberg/.pyenv/shims/python
~/Develop/chaoss
❯ python -V
Python 3.7.3
~/Develop/chaoss
❯ python -m venv venv
~/Develop/chaoss
❯ activate
~/Develop/chaoss
venv ❯ pip install --upgrade pip
Collecting pip
Using cached https://files.pythonhosted.org/packages/54/0c/d01aa759fdc501a58f431eb594a17495f15b88da142ce14b5845662c13f3/pip-20.0.2-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 19.0.3
Uninstalling pip-19.0.3:
Successfully uninstalled pip-19.0.3
Successfully installed pip-20.0.2
~/Develop/chaoss
venv ❯ pip install perceval
Collecting perceval
Downloading perceval-0.12.24-py3-none-any.whl (183 kB)
|████████████████████████████████| 183 kB 1.2 MB/s
Collecting feedparser>=5.1.3
Downloading feedparser-5.2.1.tar.bz2 (192 kB)
|████████████████████████████████| 192 kB 3.3 MB/s
Collecting python-dateutil>=2.6.0
Using cached python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Collecting grimoirelab-toolkit>=0.1.4
Downloading grimoirelab_toolkit-0.1.10-py3-none-any.whl (19 kB)
Collecting beautifulsoup4>=4.3.2
Downloading beautifulsoup4-4.8.2-py3-none-any.whl (106 kB)
|████████████████████████████████| 106 kB 4.4 MB/s
Collecting dulwich<0.19,>=0.18.5
Downloading dulwich-0.18.6.tar.gz (331 kB)
|████████████████████████████████| 331 kB 3.2 MB/s
Collecting urllib3>=1.22
Using cached urllib3-1.25.8-py2.py3-none-any.whl (125 kB)
Collecting requests>=2.7.0
Using cached requests-2.23.0-py2.py3-none-any.whl (58 kB)
Collecting six>=1.5
Using cached six-1.14.0-py2.py3-none-any.whl (10 kB)
Collecting soupsieve>=1.2
Downloading soupsieve-2.0-py2.py3-none-any.whl (32 kB)
Collecting certifi>=2017.4.17
Using cached certifi-2019.11.28-py2.py3-none-any.whl (156 kB)
Collecting chardet<4,>=3.0.2
Using cached chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Collecting idna<3,>=2.5
Using cached idna-2.9-py2.py3-none-any.whl (58 kB)
Installing collected packages: feedparser, six, python-dateutil, grimoirelab-toolkit, soupsieve, beautifulsoup4, dulwich, urllib3, certifi, chardet, idna, requests, perceval
Running setup.py install for feedparser ... done
Running setup.py install for dulwich ... error
ERROR: Command errored out with exit status 1:
command: /Users/mbbroberg/Develop/chaoss/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/5l/c1y1gcw97szdywgf9rk1100m0000gn/T/pip-install-py8u_n_f/dulwich/setup.py'"'"'; __file__='"'"'/private/var/folders/5l/c1y1gcw97szdywgf9rk1100m0000gn/T/pip-install-py8u_n_f/dulwich/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/5l/c1y1gcw97szdywgf9rk1100m0000gn/T/pip-record-3dd124km/install-record.txt --single-version-externally-managed --compile --install-headers /Users/mbbroberg/Develop/chaoss/venv/include/site/python3.7/dulwich
cwd: /private/var/folders/5l/c1y1gcw97szdywgf9rk1100m0000gn/T/pip-install-py8u_n_f/dulwich/
Complete output (274 lines):
running install
running build
running build_py
creating build
creating build/lib.macosx-10.14-x86_64-3.7
# ... skipping 100 lines of compiling output ...
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Users/mbbroberg/Develop/chaoss/venv/include -I/Users/mbbroberg/.pyenv/versions/3.7.3/include/python3.7m -c dulwich/_objects.c -o build/temp.macosx-10.14-x86_64-3.7/dulwich/_objects.o
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
error: command 'clang' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/mbbroberg/Develop/chaoss/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/5l/c1y1gcw97szdywgf9rk1100m0000gn/T/pip-install-py8u_n_f/dulwich/setup.py'"'"'; __file__='"'"'/private/var/folders/5l/c1y1gcw97szdywgf9rk1100m0000gn/T/pip-install-py8u_n_f/dulwich/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/5l/c1y1gcw97szdywgf9rk1100m0000gn/T/pip-record-3dd124km/install-record.txt --single-version-externally-managed --compile --install-headers /Users/mbbroberg/Develop/chaoss/venv/include/site/python3.7/dulwich Check the logs for full command output.
I tried to find the logs mentioned, but gave up on them and decided to cycle through some sane troubleshooting steps.
My default assumption is that I am (a) on an outdated version of Python, so I cycled through every one I can think through. My second assumption is that my shell is causing an issue, so I hopped out of fish shell into bash and zsh, both of which had the same issue. I finally centered in on the exit command: clang, the C language compiler pip appears to use by default. So I gave that a spin:
~/Develop/chaoss
venv ❯ which clang
/usr/bin/clang
~/Develop/chaoss
venv ❯ clang
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Ah-ha! There’s something off with clang’s dependencies that gets bundled into the ever-important xcode-select installation. Let’s run a fresh install:
~/Develop/chaoss
venv ❯ xcode-select --install
xcode-select: note: install requested for command line developer tools
And see if clang still errors.
~/Develop/chaoss
venv ❯ clang
clang: error: no input files
Nope. Then I tried to install my package through pip again.
~/Develop/chaoss
venv ❯ pip install perceval
Collecting perceval
Using cached perceval-0.12.24-py3-none-any.whl (183 kB)
Requirement already satisfied: grimoirelab-toolkit>=0.1.4 in ./venv/lib/python3.7/site-packages (from perceval) (0.1.10)
Requirement already satisfied: python-dateutil>=2.6.0 in ./venv/lib/python3.7/site-packages (from perceval) (2.8.1)
Collecting dulwich<0.19,>=0.18.5
Using cached dulwich-0.18.6.tar.gz (331 kB)
Requirement already satisfied: feedparser>=5.1.3 in ./venv/lib/python3.7/site-packages (from perceval) (5.2.1)
Collecting urllib3>=1.22
Using cached urllib3-1.25.8-py2.py3-none-any.whl (125 kB)
Requirement already satisfied: beautifulsoup4>=4.3.2 in ./venv/lib/python3.7/site-packages (from perceval) (4.8.2)
Collecting requests>=2.7.0
Using cached requests-2.23.0-py2.py3-none-any.whl (58 kB)
Requirement already satisfied: six>=1.5 in ./venv/lib/python3.7/site-packages (from python-dateutil>=2.6.0->perceval) (1.14.0)
Requirement already satisfied: soupsieve>=1.2 in ./venv/lib/python3.7/site-packages (from beautifulsoup4>=4.3.2->perceval) (2.0)
Collecting idna<3,>=2.5
Using cached idna-2.9-py2.py3-none-any.whl (58 kB)
Collecting certifi>=2017.4.17
Using cached certifi-2019.11.28-py2.py3-none-any.whl (156 kB)
Collecting chardet<4,>=3.0.2
Using cached chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Installing collected packages: dulwich, urllib3, idna, certifi, chardet, requests, perceval
Running setup.py install for dulwich ... done
Successfully installed certifi-2019.11.28 chardet-3.0.4 dulwich-0.18.6 idna-2.9 perceval-0.12.24 requests-2.23.0 urllib3-1.25.8
Installation happened with no error. There we go ✅
Improving the Python pip user experience
The layers of technology we depend on to run software can humble anyone new to programming. With Python becoming more and more the first language for developers (from software engineer to hobbyist), my hope is that the install, upgrade, and environment management tooling can become friendlier and hide some of this complexity by default.
If I were to redesign this experience, I would show this level of detail in a --verbose output of pip while it defaults to something more like:
~/Develop/chaoss
❯ pip install perceval
Checking for virtual environments. Don't see one: do you want to set one up to contain dependencies to this folder (Recommended): Y/N
Y
What would you like to name the virtual environment (default: venv)?
venv
Setting up virtual environment. Python version is 3.7.3
Upgrading local pip to latest version, pip-20.0.2
Installing perceval
|████████████████████████ |
More on what that means to the user experience:
- An interactive prompt helps new user by default. This could be introduced gradually, first with an
--interactiveflag, then slowly adopted as the default with additonal alternative flags and sane behaviors to avoid interactivity. For example:--venvto name the environment.-fto override any interactivity and install to the system Python.- No prompt comes up if there is already an activated environment.
- Less information is sufficient for most Python users. Let them see a package as a single package, and start to learn the libraries when they get into the source code, not during installation.
- Make
-v/--verboseto be the current level of output. - Introduce a
-vvto replace what is currently-vgiven its additional details.
- Make
Again this can be introduced slowly since it will break behavior people have used for many years. Include Warn prompts and update statuses for at least a few versions before the switch.
Wrapping up
Dependencies can be tricky. I hope this helps others get out of a similar situation in the future.
Thinking more broadly: Python has become the predominate beginner language outside of a speciality in front-end development. I hope to see more progress in it being an easy-to-use language in future releases, and I intend to participate where I can to do so.
Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
I’m trying to install flask-bcrypt on my MacBook Pro (Retina, 15-inch, Mid 2014) running El Capitan (v10.11.1) via the following:
pip3 install flask-bcrypt
And it is producing the following error:
c/_cffi_backend.c:13:10: fatal error: 'ffi.h' file not found #include <ffi.h> ^ 1 error generated. Note: will not use '__thread' in the C code The above error message can be safely ignored error: command '/usr/bin/clang' failed with exit status 1
Any ideas?
4 Answers
Josh Davis November 17, 2015 12:36am

MOD
I’ve been there! The key is to install py-bcrypt (instead of plain bcrypt) then install flask-bcrypt.
See post on How to Run Flask Locally for a complete list of pip install commands.
Here is an explicit flow of getting «python app.py» to run in a virtual env.
The flow below creates a fresh virtual environment. After each install I ran «python app.py» to see what was missing (not shown), I then installed just one module at a time until it all worked. I used «pip freeze» to display the currently installed modules at each step.
If you do not wish to use a (highly recommended) virtual env, you can skip the activate step.
# Create new virtual env using python 3.4 $ virtualenv -p /usr/bin/python3.4 venv3.4 # Activate new venv $ . ./venv3.4/bin/activate # check what is stalled (venv3.4)s pip freeze # Nothing installed, start with Flask (venv3.4)s pip install Flask (venv3.4)s pip freeze Flask==0.10.1 Jinja2==2.8 # <-- new MarkupSafe==0.23 # <-- new Werkzeug==0.10.4 # <-- new itsdangerous==0.24 # <-- new # Install py-bcrypt (venv3.4)s pip install py-bcrypt (venv3.4)s pip freeze Flask==0.10.1 Jinja2==2.8 MarkupSafe==0.23 Werkzeug==0.10.4 itsdangerous==0.24 py-bcrypt==0.4 # <-- new # Install Flask-bcrypt (venv3.4)s pip install Flask-bcrypt (venv3.4)s pip freeze Flask==0.10.1 Flask-Bcrypt==0.7.1 # <-- new Jinja2==2.8 MarkupSafe==0.23 Werkzeug==0.10.4 bcrypt==2.0.0 # <-- new cffi==1.3.0 # <-- new itsdangerous==0.24 py-bcrypt==0.4 pycparser==2.14 # <-- new six==1.10.0 # <-- new # Install Flask-login (venv3.4)s pip install Flask-login (venv3.4)s pip freeze Flask==0.10.1 Flask-Bcrypt==0.7.1 Flask-Login==0.3.2 # <-- new Jinja2==2.8 MarkupSafe==0.23 Werkzeug==0.10.4 bcrypt==2.0.0 cffi==1.3.0 itsdangerous==0.24 py-bcrypt==0.4 pycparser==2.14 six==1.10.0 # Install Flask-WTF (venv3.4)s pip install Flask-WTF (venv3.4)s pip freeze Flask==0.10.1 Flask-Bcrypt==0.7.1 Flask-Login==0.3.2 Flask-WTF==0.12 # <-- new Jinja2==2.8 MarkupSafe==0.23 WTForms==2.0.2 # <-- new Werkzeug==0.10.4 bcrypt==2.0.0 cffi==1.3.0 itsdangerous==0.24 py-bcrypt==0.4 pycparser==2.14 six==1.10.0 # Install peewee (venv3.4)s pip install peewee (venv3.4)s pip freeze Flask==0.10.1 Flask-Bcrypt==0.7.1 Flask-Login==0.3.2 Flask-WTF==0.12 Jinja2==2.8 MarkupSafe==0.23 WTForms==2.0.2 Werkzeug==0.10.4 bcrypt==2.0.0 cffi==1.3.0 itsdangerous==0.24 peewee==2.6.4 # <-- new py-bcrypt==0.4 pycparser==2.14 six==1.10.0 # Glory Time! (venv3.4)s python app.py * Running on http://0.0.0.0:8080/ (Press CTRL+C to quit) * Restarting with stat
dierkpolzin November 17, 2015 12:14am
I changed from the tcsh to bash and activate worked…
I was able to get the «venv» to start up… i used pip.. to install flask successfully…
pip install Flask
Collecting Flask
Using cached Flask-0.10.1.tar.gz
Collecting Werkzeug>=0.7 (from Flask)
Downloading Werkzeug-0.11.2-py2.py3-none-any.whl (304kB)
100% |████████████████████████████████| 307kB 671kB/s
Collecting Jinja2>=2.4 (from Flask)
Using cached Jinja2-2.8-py2.py3-none-any.whl
Collecting itsdangerous>=0.21 (from Flask)
Using cached itsdangerous-0.24.tar.gz
Collecting MarkupSafe (from Jinja2>=2.4->Flask)
Using cached MarkupSafe-0.23.tar.gz
Building wheels for collected packages: Flask, itsdangerous, MarkupSafe
Running setup.py bdist_wheel for Flask
Stored in directory: /Users/dierkpol/Library/Caches/pip/wheels/d2/db/61/cb9b80526b8f3ba89248ec0a29d6da1bb6013681c930fca987
Running setup.py bdist_wheel for itsdangerous
Stored in directory: /Users/dierkpol/Library/Caches/pip/wheels/97/c0/b8/b37c320ff57e15f993ba0ac98013eee778920b4a7b3ebae3cf
Running setup.py bdist_wheel for MarkupSafe
Complete output from command /Users/dierkpol/venv3.5/bin/python3 -c «import setuptools;file=’/private/var/folders/wc/61klhx9m8xj1b0001s6wbpmr0000gq/T/pip-build-58oqid9o/MarkupSafe/setup.py’;exec(compile(open(file).read().replace(‘rn’, ‘n’), file, ‘exec’))» bdist_wheel -d /var/folders/wc/61klhx9m8xj1b0001s6wbpmr0000gq/T/tmpo5iov7pwpip-wheel-:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.6-intel-3.5
but it does not finish
Failed building wheel for MarkupSafe
Successfully built Flask itsdangerous
Failed to build MarkupSafe

-I/usr/include/ffi -I/usr/include/libffi ...
Looks as if you’re missing the ffi library, gents… I use Fedora, but perhaps we can find someone to translate:
sudo dnf install libffi-devel OR sudo apt-get install libffi-dev OR sudo apt-get install libffi


