Error when trying to install azureml-automl-core - azure

I'm trying to install the azureml-automl-core package on my macOS laptop with the following command:
pip install azureml-automl-core
and I get an error which says that it encountered error while trying to install the numpy package. But I already have numpy (1.23.3) installed. I use python 3.10.5.
Can anyone help me with solving this error?
Here is the full output from running the command above:
Collecting azureml-automl-core
Using cached azureml_automl_core-1.18.0.post2-py3-none-any.whl (186 kB)
Collecting azureml-dataset-runtime~=1.18.0
Using cached azureml_dataset_runtime-1.18.0-py3-none-any.whl (3.4 kB)
Collecting azureml-telemetry~=1.18.0
Using cached azureml_telemetry-1.18.0.post1-py3-none-any.whl (30 kB)
Collecting azureml-dataprep<2.5.0a,>=2.4.0a
Using cached azureml_dataprep-2.4.5-py3-none-any.whl (28.2 MB)
Collecting pyarrow<2.0.0,>=0.17.0
Using cached pyarrow-1.0.1.tar.gz (1.3 MB)
Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [311 lines of output]
Ignoring numpy: markers 'python_version < "3.7"' don't match your environment
Collecting cython>=0.29
Using cached Cython-0.29.32-py2.py3-none-any.whl (986 kB)
Collecting numpy==1.16.0
Using cached numpy-1.16.0.zip (5.1 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting setuptools
Using cached setuptools-65.4.0-py3-none-any.whl (1.2 MB)
Collecting setuptools_scm
Using cached setuptools_scm-7.0.5-py3-none-any.whl (42 kB)
Collecting wheel
Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB)
Collecting packaging>=20.0
Using cached packaging-21.3-py3-none-any.whl (40 kB)
Collecting typing-extensions
Using cached typing_extensions-4.3.0-py3-none-any.whl (25 kB)
Collecting tomli>=1.0.0
Using cached tomli-2.0.1-py3-none-any.whl (12 kB)
Collecting pyparsing!=3.0.5,>=2.0.2
Using cached pyparsing-3.0.9-py3-none-any.whl (98 kB)
Building wheels for collected packages: numpy
Building wheel for numpy (setup.py): started
Building wheel for numpy (setup.py): finished with status 'error'
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [116 lines of output]
Running from numpy source directory.
/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/misc_util.py:476: SyntaxWarning: "is" with a literal. Did you mean "=="?
return is_string(s) and ('*' in s or '?' is s)
blas_opt_info:
blas_mkl_info:
customize UnixCCompiler
libraries mkl_rt not found in ['/Users/jonashanetho/miniforge3/lib', '/usr/lib']
NOT AVAILABLE
blis_info:
customize UnixCCompiler
libraries blis not found in ['/Users/jonashanetho/miniforge3/lib', '/usr/lib']
NOT AVAILABLE
openblas_info:
customize UnixCCompiler
customize UnixCCompiler
customize UnixCCompiler
FOUND:
libraries = ['openblas', 'openblas']
library_dirs = ['/Users/jonashanetho/miniforge3/lib']
language = c
define_macros = [('HAVE_CBLAS', None)]
FOUND:
libraries = ['openblas', 'openblas']
library_dirs = ['/Users/jonashanetho/miniforge3/lib']
language = c
define_macros = [('HAVE_CBLAS', None)]
/bin/sh: svnversion: command not found
non-existing path in 'numpy/distutils': 'site.cfg'
lapack_opt_info:
lapack_mkl_info:
customize UnixCCompiler
libraries mkl_rt not found in ['/Users/jonashanetho/miniforge3/lib', '/usr/lib']
NOT AVAILABLE
openblas_lapack_info:
customize UnixCCompiler
customize UnixCCompiler
customize UnixCCompiler
C compiler: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/jonashanetho/miniforge3/include -arch arm64 -fPIC -O2 -isystem /Users/jonashanetho/miniforge3/include -arch arm64
creating /var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/tmph373kjxk/var
creating /var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/tmph373kjxk/var/folders
creating /var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/tmph373kjxk/var/folders/rb
creating /var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/tmph373kjxk/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn
creating /var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/tmph373kjxk/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T
creating /var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/tmph373kjxk/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/tmph373kjxk
compile options: '-c'
clang: /var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/tmph373kjxk/source.c
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Traceback (most recent call last):
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/unixccompiler.py", line 57, in UnixCCompiler__compile
self.spawn(self.compiler_so + cc_args + [src, '-o', obj] + deps +
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/ccompiler.py", line 92, in <lambda>
m = lambda self, *args, **kw: func(self, *args, **kw)
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/ccompiler.py", line 171, in CCompiler_spawn
raise DistutilsExecError('Command "%s" failed with exit status %d%s' %
distutils.errors.DistutilsExecError: Command "clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/jonashanetho/miniforge3/include -arch arm64 -fPIC -O2 -isystem /Users/jonashanetho/miniforge3/include -arch arm64 -c /var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/tmph373kjxk/source.c -o /var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/tmph373kjxk/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/tmph373kjxk/source.o -MMD -MF /var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/tmph373kjxk/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/tmph373kjxk/source.o.d" failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/setup.py", line 415, in <module>
setup_package()
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/setup.py", line 407, in setup_package
setup(**metadata)
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/core.py", line 137, in setup
config = configuration()
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/setup.py", line 164, in configuration
config.add_subpackage('numpy')
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/misc_util.py", line 1034, in add_subpackage
config_list = self.get_subpackage(subpackage_name, subpackage_path,
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/misc_util.py", line 1000, in get_subpackage
config = self._get_configuration_from_setup_py(
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/misc_util.py", line 942, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "numpy/setup.py", line 16, in configuration
config.add_subpackage('linalg')
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/misc_util.py", line 1034, in add_subpackage
config_list = self.get_subpackage(subpackage_name, subpackage_path,
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/misc_util.py", line 1000, in get_subpackage
config = self._get_configuration_from_setup_py(
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/misc_util.py", line 942, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "numpy/linalg/setup.py", line 29, in configuration
lapack_info = get_info('lapack_opt', 0) # and {}
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/system_info.py", line 433, in get_info
return cl().get_info(notfound_action)
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/system_info.py", line 625, in get_info
self.calc_info()
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/system_info.py", line 1538, in calc_info
openblas_info = get_info('openblas_lapack')
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/system_info.py", line 433, in get_info
return cl().get_info(notfound_action)
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/system_info.py", line 625, in get_info
self.calc_info()
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/system_info.py", line 1777, in calc_info
if not (assume_lapack or self.check_embedded_lapack(info)):
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/system_info.py", line 1843, in check_embedded_lapack
obj = c.compile([src], output_dir=tmpdir)
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/ccompiler.py", line 92, in <lambda>
m = lambda self, *args, **kw: func(self, *args, **kw)
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/ccompiler.py", line 363, in CCompiler_compile
single_compile(o)
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/ccompiler.py", line 323, in single_compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/ccompiler.py", line 92, in <lambda>
m = lambda self, *args, **kw: func(self, *args, **kw)
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/unixccompiler.py", line 61, in UnixCCompiler__compile
raise CompileError(msg)
distutils.errors.CompileError: Command "clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/jonashanetho/miniforge3/include -arch arm64 -fPIC -O2 -isystem /Users/jonashanetho/miniforge3/include -arch arm64 -c /var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/tmph373kjxk/source.c -o /var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/tmph373kjxk/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/tmph373kjxk/source.o -MMD -MF /var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/tmph373kjxk/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/tmph373kjxk/source.o.d" failed with exit status 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for numpy
Running setup.py clean for numpy
error: subprocess-exited-with-error
× python setup.py clean did not run successfully.
│ exit code: 1
╰─> [10 lines of output]
Running from numpy source directory.
`setup.py clean` is not supported, use one of the following instead:
- `git clean -xdf` (cleans all files)
- `git clean -Xdf` (cleans all versioned files, doesn't touch
files that aren't checked into the git repo)
Add `--force` to your command to use it anyway if you must (unsupported).
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed cleaning build dir for numpy
Failed to build numpy
Installing collected packages: wheel, typing-extensions, tomli, setuptools, pyparsing, numpy, cython, packaging, setuptools_scm
Running setup.py install for numpy: started
Running setup.py install for numpy: finished with status 'error'
error: subprocess-exited-with-error
× Running setup.py install for numpy did not run successfully.
│ exit code: 1
╰─> [123 lines of output]
Running from numpy source directory.
Note: if you need reliable uninstall behavior, then install
with pip instead of using `setup.py install`:
- `pip install .` (from a git repo or downloaded source
release)
- `pip install numpy` (last NumPy release on PyPi)
blas_opt_info:
blas_mkl_info:
customize UnixCCompiler
libraries mkl_rt not found in ['/Users/jonashanetho/miniforge3/lib', '/usr/lib']
NOT AVAILABLE
blis_info:
customize UnixCCompiler
libraries blis not found in ['/Users/jonashanetho/miniforge3/lib', '/usr/lib']
NOT AVAILABLE
openblas_info:
customize UnixCCompiler
customize UnixCCompiler
customize UnixCCompiler
FOUND:
libraries = ['openblas', 'openblas']
library_dirs = ['/Users/jonashanetho/miniforge3/lib']
language = c
define_macros = [('HAVE_CBLAS', None)]
FOUND:
libraries = ['openblas', 'openblas']
library_dirs = ['/Users/jonashanetho/miniforge3/lib']
language = c
define_macros = [('HAVE_CBLAS', None)]
/bin/sh: svnversion: command not found
non-existing path in 'numpy/distutils': 'site.cfg'
lapack_opt_info:
lapack_mkl_info:
customize UnixCCompiler
libraries mkl_rt not found in ['/Users/jonashanetho/miniforge3/lib', '/usr/lib']
NOT AVAILABLE
openblas_lapack_info:
customize UnixCCompiler
customize UnixCCompiler
customize UnixCCompiler
C compiler: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/jonashanetho/miniforge3/include -arch arm64 -fPIC -O2 -isystem /Users/jonashanetho/miniforge3/include -arch arm64
creating /var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/tmpbe8s1u05/var
creating /var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/tmpbe8s1u05/var/folders
creating /var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/tmpbe8s1u05/var/folders/rb
creating /var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/tmpbe8s1u05/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn
creating /var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/tmpbe8s1u05/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T
creating /var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/tmpbe8s1u05/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/tmpbe8s1u05
compile options: '-c'
clang: /var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/tmpbe8s1u05/source.c
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Traceback (most recent call last):
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/unixccompiler.py", line 57, in UnixCCompiler__compile
self.spawn(self.compiler_so + cc_args + [src, '-o', obj] + deps +
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/ccompiler.py", line 92, in <lambda>
m = lambda self, *args, **kw: func(self, *args, **kw)
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/ccompiler.py", line 171, in CCompiler_spawn
raise DistutilsExecError('Command "%s" failed with exit status %d%s' %
distutils.errors.DistutilsExecError: Command "clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/jonashanetho/miniforge3/include -arch arm64 -fPIC -O2 -isystem /Users/jonashanetho/miniforge3/include -arch arm64 -c /var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/tmpbe8s1u05/source.c -o /var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/tmpbe8s1u05/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/tmpbe8s1u05/source.o -MMD -MF /var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/tmpbe8s1u05/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/tmpbe8s1u05/source.o.d" failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/setup.py", line 415, in <module>
setup_package()
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/setup.py", line 407, in setup_package
setup(**metadata)
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/core.py", line 137, in setup
config = configuration()
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/setup.py", line 164, in configuration
config.add_subpackage('numpy')
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/misc_util.py", line 1034, in add_subpackage
config_list = self.get_subpackage(subpackage_name, subpackage_path,
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/misc_util.py", line 1000, in get_subpackage
config = self._get_configuration_from_setup_py(
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/misc_util.py", line 942, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "numpy/setup.py", line 16, in configuration
config.add_subpackage('linalg')
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/misc_util.py", line 1034, in add_subpackage
config_list = self.get_subpackage(subpackage_name, subpackage_path,
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/misc_util.py", line 1000, in get_subpackage
config = self._get_configuration_from_setup_py(
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/misc_util.py", line 942, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "numpy/linalg/setup.py", line 29, in configuration
lapack_info = get_info('lapack_opt', 0) # and {}
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/system_info.py", line 433, in get_info
return cl().get_info(notfound_action)
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/system_info.py", line 625, in get_info
self.calc_info()
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/system_info.py", line 1538, in calc_info
openblas_info = get_info('openblas_lapack')
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/system_info.py", line 433, in get_info
return cl().get_info(notfound_action)
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/system_info.py", line 625, in get_info
self.calc_info()
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/system_info.py", line 1777, in calc_info
if not (assume_lapack or self.check_embedded_lapack(info)):
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/system_info.py", line 1843, in check_embedded_lapack
obj = c.compile([src], output_dir=tmpdir)
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/ccompiler.py", line 92, in <lambda>
m = lambda self, *args, **kw: func(self, *args, **kw)
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/ccompiler.py", line 363, in CCompiler_compile
single_compile(o)
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/ccompiler.py", line 323, in single_compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/ccompiler.py", line 92, in <lambda>
m = lambda self, *args, **kw: func(self, *args, **kw)
File "/private/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/pip-install-pq5jl3jg/numpy_24f0afb6d7a84f039ecde184ebc9effa/numpy/distutils/unixccompiler.py", line 61, in UnixCCompiler__compile
raise CompileError(msg)
distutils.errors.CompileError: Command "clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/jonashanetho/miniforge3/include -arch arm64 -fPIC -O2 -isystem /Users/jonashanetho/miniforge3/include -arch arm64 -c /var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/tmpbe8s1u05/source.c -o /var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/tmpbe8s1u05/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/tmpbe8s1u05/source.o -MMD -MF /var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/tmpbe8s1u05/var/folders/rb/h6n2k3t97tnc8mw3n9rkxs140000gn/T/tmpbe8s1u05/source.o.d" failed with exit status 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> numpy
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.

Related

pip install tensorflow failed due to grpcio

I tried to install tensorflow on my local by running pip install tensorflow, and getting following error.
cc1: warning: command line option '-std=c++14' is valid for C++/ObjC++ but not for C
creating None
creating None/tmp
creating None/tmp/tmpzezg1qs3
/home/gooder/anaconda3/bin/x86_64-conda_cos6-linux-gnu-cc -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -Wstrict-prototypes -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -fPIC -I/home/gooder/anaconda3/include/python3.7m -c /tmp/tmpzezg1qs3/a.c -o None/tmp/tmpzezg1qs3/a.o
Traceback (most recent call last):
File "/home/gooder/anaconda3/lib/python3.7/site-packages/setuptools/_distutils/unixccompiler.py", line 186, in _compile
self.spawn(compiler_so + cc_args + [src, '-o', obj] + extra_postargs)
File "/tmp/pip-install-19mjkv2x/grpcio/src/python/grpcio/_spawn_patch.py", line 54, in _commandfile_spawn
_classic_spawn(self, command)
File "/home/gooder/anaconda3/lib/python3.7/site-packages/setuptools/_distutils/ccompiler.py", line 1007, in spawn
spawn(cmd, dry_run=self.dry_run, **kwargs)
File "/home/gooder/anaconda3/lib/python3.7/site-packages/setuptools/_distutils/spawn.py", line 71, in spawn
"command {!r} failed with exit code {}".format(cmd, exitcode)
distutils.errors.DistutilsExecError: command '/home/gooder/anaconda3/bin/x86_64-conda_cos6-linux-gnu-cc' failed with exit code 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/pip-install-19mjkv2x/grpcio/src/python/grpcio/commands.py", line 280, in build_extensions
build_ext.build_ext.build_extensions(self)
File "/home/gooder/anaconda3/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 194, in build_extensions
self.build_extension(ext)
File "/home/gooder/anaconda3/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 246, in build_extension
_build_ext.build_extension(self, ext)
File "/home/gooder/anaconda3/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 554, in build_extension
depends=ext.depends,
File "/tmp/pip-install-19mjkv2x/grpcio/src/python/grpcio/_parallel_compile_patch.py", line 59, in _parallel_compile
_compile_single_file, objects)
File "/home/gooder/anaconda3/lib/python3.7/multiprocessing/pool.py", line 268, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/home/gooder/anaconda3/lib/python3.7/multiprocessing/pool.py", line 657, in get
raise self._value
File "/home/gooder/anaconda3/lib/python3.7/multiprocessing/pool.py", line 121, in worker
result = (True, func(*args, **kwds))
File "/home/gooder/anaconda3/lib/python3.7/multiprocessing/pool.py", line 44, in mapstar
return list(map(*args))
File "/tmp/pip-install-19mjkv2x/grpcio/src/python/grpcio/_parallel_compile_patch.py", line 54, in _compile_single_file
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/home/gooder/anaconda3/lib/python3.7/site-packages/setuptools/_distutils/unixccompiler.py", line 188, in _compile
raise CompileError(msg)
distutils.errors.CompileError: command '/home/gooder/anaconda3/bin/x86_64-conda_cos6-linux-gnu-cc' failed with exit code1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-19mjkv2x/grpcio/setup.py", line 558, in <module>
cmdclass=COMMAND_CLASS,
File "/home/gooder/anaconda3/lib/python3.7/site-packages/setuptools/__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/home/gooder/anaconda3/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/home/gooder/anaconda3/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/home/gooder/anaconda3/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
self.run_command(cmd)
File "/home/gooder/anaconda3/lib/python3.7/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/home/gooder/anaconda3/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "/home/gooder/anaconda3/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 325, in run
self.run_command("build")
File "/home/gooder/anaconda3/lib/python3.7/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command
self.distribution.run_command(command)
File "/home/gooder/anaconda3/lib/python3.7/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/home/gooder/anaconda3/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "/home/gooder/anaconda3/lib/python3.7/site-packages/setuptools/_distutils/command/build.py", line 132, in run
self.run_command(cmd_name)
File "/home/gooder/anaconda3/lib/python3.7/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command
self.distribution.run_command(command)
File "/home/gooder/anaconda3/lib/python3.7/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/home/gooder/anaconda3/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "/home/gooder/anaconda3/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 84, in run
_build_ext.run(self)
File "/home/gooder/anaconda3/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "/home/gooder/anaconda3/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 346, in run
self.build_extensions()
File "/tmp/pip-install-19mjkv2x/grpcio/src/python/grpcio/commands.py", line 285, in build_extensions
"Failed `build_ext` step:\n{}".format(formatted_exception))
commands.CommandError: Failed `build_ext` step:
Traceback (most recent call last):
File "/home/gooder/anaconda3/lib/python3.7/site-packages/setuptools/_distutils/unixccompiler.py", line 186, in _compile
self.spawn(compiler_so + cc_args + [src, '-o', obj] + extra_postargs)
File "/tmp/pip-install-19mjkv2x/grpcio/src/python/grpcio/_spawn_patch.py", line 54, in _commandfile_spawn
_classic_spawn(self, command)
File "/home/gooder/anaconda3/lib/python3.7/site-packages/setuptools/_distutils/ccompiler.py", line 1007, in spawn
spawn(cmd, dry_run=self.dry_run, **kwargs)
File "/home/gooder/anaconda3/lib/python3.7/site-packages/setuptools/_distutils/spawn.py", line 71, in spawn
"command {!r} failed with exit code {}".format(cmd, exitcode)
distutils.errors.DistutilsExecError: command '/home/gooder/anaconda3/bin/x86_64-conda_cos6-linux-gnu-cc' failed with exit code 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/pip-install-19mjkv2x/grpcio/src/python/grpcio/commands.py", line 280, in build_extensions
build_ext.build_ext.build_extensions(self)
File "/home/gooder/anaconda3/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 194, in build_extensions
self.build_extension(ext)
File "/home/gooder/anaconda3/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 246, in build_extension
_build_ext.build_extension(self, ext)
File "/home/gooder/anaconda3/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 554, in build_extension
depends=ext.depends,
File "/tmp/pip-install-19mjkv2x/grpcio/src/python/grpcio/_parallel_compile_patch.py", line 59, in _parallel_compile
_compile_single_file, objects)
File "/home/gooder/anaconda3/lib/python3.7/multiprocessing/pool.py", line 268, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/home/gooder/anaconda3/lib/python3.7/multiprocessing/pool.py", line 657, in get
raise self._value
File "/home/gooder/anaconda3/lib/python3.7/multiprocessing/pool.py", line 121, in worker
result = (True, func(*args, **kwds))
File "/home/gooder/anaconda3/lib/python3.7/multiprocessing/pool.py", line 44, in mapstar
return list(map(*args))
File "/tmp/pip-install-19mjkv2x/grpcio/src/python/grpcio/_parallel_compile_patch.py", line 54, in _compile_single_file
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/home/gooder/anaconda3/lib/python3.7/site-packages/setuptools/_distutils/unixccompiler.py", line 188, in _compile
raise CompileError(msg)
distutils.errors.CompileError: command '/home/gooder/anaconda3/bin/x86_64-conda_cos6-linux-gnu-cc' failed with exit code1
----------------------------------------
ERROR: Failed building wheel for grpcio
I have updated my pip version and setup tool version, but still getting the same thing. I also tried using virtual env but still cannot install this. I'm using ubuntu 18.04. Does anyone know what's going on here?

Not able to install requirement file because of wrapt error

Currently I am installing requirement file in using Virtualenv & got unexpected error of wrapt.
I have tried to find solution from google but not able to solve my issue.
Trackback of error is as below.
Building wheels for collected packages: wrapt
Building wheel for wrapt (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'd:\production\sparrow_v2\venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"
'"'C:\\Users\\admi\\AppData\\Local\\Temp\\pip-install-ipeb0izl\\wrapt\\setup.py'"'"'; __file__='"'"'C:\\Users\\admi\\App
Data\\Local\\Temp\\pip-install-ipeb0izl\\wrapt\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f
.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C
:\Users\admi\AppData\Local\Temp\pip-wheel-5dx2m136'
cwd: C:\Users\admi\AppData\Local\Temp\pip-install-ipeb0izl\wrapt\
Complete output (59 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.7
creating build\lib.win32-3.7\wrapt
copying src\wrapt\decorators.py -> build\lib.win32-3.7\wrapt
copying src\wrapt\importer.py -> build\lib.win32-3.7\wrapt
copying src\wrapt\wrappers.py -> build\lib.win32-3.7\wrapt
copying src\wrapt\__init__.py -> build\lib.win32-3.7\wrapt
running build_ext
building 'wrapt._wrappers' extension
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\admi\AppData\Local\Temp\pip-install-ipeb0izl\wrapt\setup.py", line 101, in <module>
run_setup(with_extensions=True)
File "C:\Users\admi\AppData\Local\Temp\pip-install-ipeb0izl\wrapt\setup.py", line 71, in run_setup
setup(**setup_kwargs_tmp)
File "C:\Python37\Lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Python37\Lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\Python37\Lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "d:\production\sparrow_v2\venv\lib\site-packages\wheel\bdist_wheel.py", line 192, in run
self.run_command('build')
File "C:\Python37\Lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Python37\Lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Python37\Lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\Python37\Lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Python37\Lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\admi\AppData\Local\Temp\pip-install-ipeb0izl\wrapt\setup.py", line 25, in run
build_ext.run(self)
File "C:\Python37\Lib\distutils\command\build_ext.py", line 340, in run
self.build_extensions()
File "C:\Python37\Lib\distutils\command\build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "C:\Python37\Lib\distutils\command\build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "C:\Users\admi\AppData\Local\Temp\pip-install-ipeb0izl\wrapt\setup.py", line 31, in build_extension
build_ext.build_extension(self, ext)
File "C:\Python37\Lib\distutils\command\build_ext.py", line 534, in build_extension
depends=ext.depends)
File "C:\Python37\Lib\distutils\_msvccompiler.py", line 346, in compile
self.initialize()
File "C:\Python37\Lib\distutils\_msvccompiler.py", line 239, in initialize
vc_env = _get_vc_env(plat_spec)
File "d:\production\sparrow_v2\venv\lib\site-packages\setuptools\msvc.py", line 171, in msvc14_get_vc_env
return EnvironmentInfo(plat_spec, vc_min_ver=14.0).return_env()
File "d:\production\sparrow_v2\venv\lib\site-packages\setuptools\msvc.py", line 1620, in return_env
if self.vs_ver >= 14 and isfile(self.VCRuntimeRedist):
File "d:\production\sparrow_v2\venv\lib\genericpath.py", line 30, in isfile
st = os.stat(path)
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
----------------------------------------
ERROR: Failed building wheel for wrapt
Running setup.py clean for wrapt
Failed to build wrapt
ERROR: django-cache-manager 0.5.1 has requirement Django<1.11, but you'll have django 2.2.6 which is incompatible.
ERROR: pyexcel-xlsx 0.5.7 has requirement openpyxl<2.6.0,>=2.5.0, but you'll have openpyxl 3.0.2 which is incompatible.
Installing collected packages: pycparser, cffi, six, cryptography, idna, certifi, urllib3, chardet, requests, python-dat
eutil, PyJWT, adal, vine, amqp, anyjson, asgiref, asn1crypto, typed-ast, lazy-object-proxy, wrapt, astroid, backports.fu
nctools-lru-cache, soupsieve, beautifulsoup4, billiard, bitmath, boto, bson, pytz, more-itertools, zipp, importlib-metad
ata, kombu, celery, colorama, configparser, cron-descriptor, croniter, crontab, tzlocal, regex, dateparser, sqlparse, Dj
ango, django-cache-manager, django-js-asset, django-ckeditor, django-common-helpers, django-contrib-comments, django-cps
erver, django-crispy-forms, django-debug-toolbar, django-debug-panel, django-grappelli, Pillow, django-filebrowser, djan
go-mptt, django-mssql, jsonfield, django-post-office, pyodbc, django-pyodbc, unicodecsv, django-queryset-csv, future, dj
ango-ses, django-smtp-ssl, python-tds, django-sqlserver, django-storages, django-stronghold, django-tagging, psycopg2-bi
nary, ordered-set, django-tenant-schemas, django-widget-tweaks, django-xmlrpc, elasticsearch, enum34, et-xmlfile, future
s, webencodings, html5lib, huBarcode, isodate, isort, jdcal, jieba, json-table-schema, jsonpickle, lml, lxml, mccabe, py
thon-magic, xlrd, messytables, mots-vides, oauthlib, requests-oauthlib, msrest, msrestazure, numpy, openpyxl, pandas, pd
fkit, psycopg2, ptvsd, pycryptodome, pyexcel-io, texttable, pyexcel, pyexcel-xlsx, pylint, pyparsing, pyStrich, pywin32,
PyYAML, requests-toolbelt, singledispatch, SQLAlchemy, TextEncoder, uamqp, Unidecode, virtualenv, waitress, wfastcgi, x
lwt, xmltodict
Running setup.py install for wrapt ... error
ERROR: Command errored out with exit status 1:
command: 'd:\production\sparrow_v2\venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] =
'"'"'C:\\Users\\admi\\AppData\\Local\\Temp\\pip-install-ipeb0izl\\wrapt\\setup.py'"'"'; __file__='"'"'C:\\Users\\admi\\A
ppData\\Local\\Temp\\pip-install-ipeb0izl\\wrapt\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code
=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --recor
d 'C:\Users\admi\AppData\Local\Temp\pip-record-1buc2ntu\install-record.txt' --single-version-externally-managed --compil
e --install-headers 'd:\production\sparrow_v2\venv\include\site\python3.7\wrapt'
cwd: C:\Users\admi\AppData\Local\Temp\pip-install-ipeb0izl\wrapt\
Complete output (61 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.7
creating build\lib.win32-3.7\wrapt
copying src\wrapt\decorators.py -> build\lib.win32-3.7\wrapt
copying src\wrapt\importer.py -> build\lib.win32-3.7\wrapt
copying src\wrapt\wrappers.py -> build\lib.win32-3.7\wrapt
copying src\wrapt\__init__.py -> build\lib.win32-3.7\wrapt
running build_ext
building 'wrapt._wrappers' extension
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\admi\AppData\Local\Temp\pip-install-ipeb0izl\wrapt\setup.py", line 101, in <module>
run_setup(with_extensions=True)
File "C:\Users\admi\AppData\Local\Temp\pip-install-ipeb0izl\wrapt\setup.py", line 71, in run_setup
setup(**setup_kwargs_tmp)
File "C:\Python37\Lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Python37\Lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\Python37\Lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "d:\production\sparrow_v2\venv\lib\site-packages\setuptools\command\install.py", line 61, in run
return orig.install.run(self)
File "C:\Python37\Lib\distutils\command\install.py", line 545, in run
self.run_command('build')
File "C:\Python37\Lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Python37\Lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Python37\Lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\Python37\Lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Python37\Lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\admi\AppData\Local\Temp\pip-install-ipeb0izl\wrapt\setup.py", line 25, in run
build_ext.run(self)
File "C:\Python37\Lib\distutils\command\build_ext.py", line 340, in run
self.build_extensions()
File "C:\Python37\Lib\distutils\command\build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "C:\Python37\Lib\distutils\command\build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "C:\Users\admi\AppData\Local\Temp\pip-install-ipeb0izl\wrapt\setup.py", line 31, in build_extension
build_ext.build_extension(self, ext)
File "C:\Python37\Lib\distutils\command\build_ext.py", line 534, in build_extension
depends=ext.depends)
File "C:\Python37\Lib\distutils\_msvccompiler.py", line 346, in compile
self.initialize()
File "C:\Python37\Lib\distutils\_msvccompiler.py", line 239, in initialize
vc_env = _get_vc_env(plat_spec)
File "d:\production\sparrow_v2\venv\lib\site-packages\setuptools\msvc.py", line 171, in msvc14_get_vc_env
return EnvironmentInfo(plat_spec, vc_min_ver=14.0).return_env()
File "d:\production\sparrow_v2\venv\lib\site-packages\setuptools\msvc.py", line 1620, in return_env
if self.vs_ver >= 14 and isfile(self.VCRuntimeRedist):
File "d:\production\sparrow_v2\venv\lib\genericpath.py", line 30, in isfile
st = os.stat(path)
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
----------------------------------------
ERROR: Command errored out with exit status 1: 'd:\production\sparrow_v2\venv\scripts\python.exe' -u -c 'import sys, set
uptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\admi\\AppData\\Local\\Temp\\pip-install-ipeb0izl\\wrapt\\setup.py'"'"';
__file__='"'"'C:\\Users\\admi\\AppData\\Local\\Temp\\pip-install-ipeb0izl\\wrapt\\setup.py'"'"';f=getattr(tokenize, '"'
"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__,
'"'"'exec'"'"'))' install --record 'C:\Users\admi\AppData\Local\Temp\pip-record-1buc2ntu\install-record.txt' --single-ve
rsion-externally-managed --compile --install-headers 'd:\production\sparrow_v2\venv\include\site\python3.7\wrapt' Check
the logs for full command output.
$ pip3 install wheel
worked for me,
regards!

Pip install scikit-learn fails in virtualenv on Debian - Raspberry PI - Failed to build scikit-learn

I created a virtualenv python3.5 on my Raspberry Pi 3. Installing scikit-learn in the activated virtualenv throws an error.
I want to install scikit-learn in this virtualenv without the error and be able to import sklearn.
I have tried to install via:
pip install scikit-learn,
sudo pip3 install scikit-learn,
Furthermore i tried to install openblas to the virtualenv as it seems that it is required (i interpreted the error-code) but no joy.
Be advised that installing scikit-learn was possible outside of any virtualenv in "base" python3. There i can install and Import it successfully.
pip install scikit-learn
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting scikit-learn
Using cached https://files.pythonhosted.org/packages/57/5c/133b464c8d0be7ac8c9414b6ff2ae848808a35ce03b146fc2c43777e51f9/scikit-learn-0.21.2.tar.gz
Requirement already satisfied: numpy>=1.11.0 in /home/pi/python_virtual_env/neural_networks/lib/python3.5/site-packages (from scikit-learn) (1.16.4)
Requirement already satisfied: scipy>=0.17.0 in /home/pi/python_virtual_env/neural_networks/lib/python3.5/site-packages (from scikit-learn) (1.3.0)
Requirement already satisfied: joblib>=0.11 in /home/pi/python_virtual_env/neural_networks/lib/python3.5/site-packages (from scikit-learn) (0.13.2)
Building wheels for collected packages: scikit-learn
Building wheel for scikit-learn (setup.py) ... error
ERROR: Complete output from command /home/pi/python_virtual_env/neural_networks/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-1vothz0i/scikit-learn/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-tu89p36i --python-tag cp35:
ERROR: Partial import of sklearn during the build process.
blas_opt_info:
blas_mkl_info:
customize UnixCCompiler
libraries mkl_rt not found in ['/home/pi/python_virtual_env/neural_networks/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/arm-linux-gnueabihf']
NOT AVAILABLE
blis_info:
customize UnixCCompiler
libraries blis not found in ['/home/pi/python_virtual_env/neural_networks/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/arm-linux-gnueabihf']
NOT AVAILABLE
openblas_info:
customize UnixCCompiler
customize UnixCCompiler
customize UnixCCompiler
FOUND:
library_dirs = ['/usr/lib']
libraries = ['openblas', 'openblas']
define_macros = [('HAVE_CBLAS', None)]
language = c
FOUND:
library_dirs = ['/usr/lib']
libraries = ['openblas', 'openblas']
define_macros = [('HAVE_CBLAS', None)]
language = c
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-1vothz0i/scikit-learn/setup.py", line 290, in <module>
setup_package()
File "/tmp/pip-install-1vothz0i/scikit-learn/setup.py", line 286, in setup_package
setup(**metadata)
File "/home/pi/python_virtual_env/neural_networks/lib/python3.5/site-packages/numpy/distutils/core.py", line 137, in setup
config = configuration()
File "/tmp/pip-install-1vothz0i/scikit-learn/setup.py", line 174, in configuration
config.add_subpackage('sklearn')
File "/home/pi/python_virtual_env/neural_networks/lib/python3.5/site-packages/numpy/distutils/misc_util.py", line 1036, in add_subpackage
caller_level = 2)
File "/home/pi/python_virtual_env/neural_networks/lib/python3.5/site-packages/numpy/distutils/misc_util.py", line 1005, in get_subpackage
caller_level = caller_level + 1)
File "/home/pi/python_virtual_env/neural_networks/lib/python3.5/site-packages/numpy/distutils/misc_util.py", line 942, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "sklearn/setup.py", line 66, in configuration
config.add_subpackage('utils')
File "/home/pi/python_virtual_env/neural_networks/lib/python3.5/site-packages/numpy/distutils/misc_util.py", line 1036, in add_subpackage
caller_level = 2)
File "/home/pi/python_virtual_env/neural_networks/lib/python3.5/site-packages/numpy/distutils/misc_util.py", line 1005, in get_subpackage
caller_level = caller_level + 1)
File "/home/pi/python_virtual_env/neural_networks/lib/python3.5/site-packages/numpy/distutils/misc_util.py", line 942, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "sklearn/utils/setup.py", line 8, in configuration
from Cython import Tempita
ImportError: No module named 'Cython'
----------------------------------------
ERROR: Failed building wheel for scikit-learn
Running setup.py clean for scikit-learn
Failed to build scikit-learn
Installing collected packages: scikit-learn
Running setup.py install for scikit-learn ... error
ERROR: Complete output from command /home/pi/python_virtual_env/neural_networks/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-1vothz0i/scikit-learn/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-9myxktkm/install-record.txt --single-version-externally-managed --compile --install-headers /home/pi/python_virtual_env/neural_networks/include/site/python3.5/scikit-learn:
ERROR: Partial import of sklearn during the build process.
blas_opt_info:
blas_mkl_info:
customize UnixCCompiler
libraries mkl_rt not found in ['/home/pi/python_virtual_env/neural_networks/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/arm-linux-gnueabihf']
NOT AVAILABLE
blis_info:
customize UnixCCompiler
libraries blis not found in ['/home/pi/python_virtual_env/neural_networks/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/arm-linux-gnueabihf']
NOT AVAILABLE
openblas_info:
customize UnixCCompiler
customize UnixCCompiler
customize UnixCCompiler
FOUND:
define_macros = [('HAVE_CBLAS', None)]
libraries = ['openblas', 'openblas']
library_dirs = ['/usr/lib']
language = c
FOUND:
define_macros = [('HAVE_CBLAS', None)]
libraries = ['openblas', 'openblas']
library_dirs = ['/usr/lib']
language = c
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-1vothz0i/scikit-learn/setup.py", line 290, in <module>
setup_package()
File "/tmp/pip-install-1vothz0i/scikit-learn/setup.py", line 286, in setup_package
setup(**metadata)
File "/home/pi/python_virtual_env/neural_networks/lib/python3.5/site-packages/numpy/distutils/core.py", line 137, in setup
config = configuration()
File "/tmp/pip-install-1vothz0i/scikit-learn/setup.py", line 174, in configuration
config.add_subpackage('sklearn')
File "/home/pi/python_virtual_env/neural_networks/lib/python3.5/site-packages/numpy/distutils/misc_util.py", line 1036, in add_subpackage
caller_level = 2)
File "/home/pi/python_virtual_env/neural_networks/lib/python3.5/site-packages/numpy/distutils/misc_util.py", line 1005, in get_subpackage
caller_level = caller_level + 1)
File "/home/pi/python_virtual_env/neural_networks/lib/python3.5/site-packages/numpy/distutils/misc_util.py", line 942, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "sklearn/setup.py", line 66, in configuration
config.add_subpackage('utils')
File "/home/pi/python_virtual_env/neural_networks/lib/python3.5/site-packages/numpy/distutils/misc_util.py", line 1036, in add_subpackage
caller_level = 2)
File "/home/pi/python_virtual_env/neural_networks/lib/python3.5/site-packages/numpy/distutils/misc_util.py", line 1005, in get_subpackage
caller_level = caller_level + 1)
File "/home/pi/python_virtual_env/neural_networks/lib/python3.5/site-packages/numpy/distutils/misc_util.py", line 942, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "sklearn/utils/setup.py", line 8, in configuration
from Cython import Tempita
ImportError: No module named 'Cython'
----------------------------------------
ERROR: Command "/home/pi/python_virtual_env/neural_networks/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-1vothz0i/scikit-learn/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-9myxktkm/install-record.txt --single-version-externally-managed --compile --install-headers /home/pi/python_virtual_env/neural_networks/include/site/python3.5/scikit-learn" failed with error code 1 in /tmp/pip-install-1vothz0i/scikit-learn/
Actual result - see Error Message above.
Expected result - successfully install scikit-learn into virtualenv via pip so Import in python3 script is possible.
Thank you!
phd's answer brought me on the right track so to say. piwheels was already installed but i found that the way i tried to install scikit-learn was wrong. And the Cython-package was missing too. So here is how it was solved:
activate the virtual environment
installed Cython via: python3 -m pip install Cython
installed scikit-learn via: python3 -m pip install scikit-learn
now i can import sklearn in the virtual env.
Thank you

conda install -c anaconda failed to install any packages via anaconda

i found that my anaconda failed to intall any packages via anaconda. Can anyone help?
(deformetrica) [qiningliu#localhost ~]$ conda install -c pytorch -c conda-forge -c anaconda -c aramislab deformetrica
Solving environment: failed
>>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
Traceback (most recent call last):
File "/home/qiningliu/anaconda3/lib/python3.6/site-packages/conda/exceptions.py", line 819, in __call__
return func(*args, **kwargs)
File "/home/qiningliu/anaconda3/lib/python3.6/site-packages/conda/cli/main.py", line 78, in _main
exit_code = do_call(args, p)
File "/home/qiningliu/anaconda3/lib/python3.6/site-packages/conda/cli/conda_argparse.py", line 77, in do_call
exit_code = getattr(module, func_name)(args, parser)
File "/home/qiningliu/anaconda3/lib/python3.6/site-packages/conda/cli/main_install.py", line 11, in execute
install(args, parser, 'install')
File "/home/qiningliu/anaconda3/lib/python3.6/site-packages/conda/cli/install.py", line 235, in install
force_reinstall=context.force,
File "/home/qiningliu/anaconda3/lib/python3.6/site-packages/conda/core/solve.py", line 505, in solve_for_transaction
force_remove, force_reinstall)
File "/home/qiningliu/anaconda3/lib/python3.6/site-packages/conda/core/solve.py", line 438, in solve_for_diff
final_precs = self.solve_final_state(deps_modifier, prune, ignore_pinned, force_remove)
File "/home/qiningliu/anaconda3/lib/python3.6/site-packages/conda/core/solve.py", line 179, in solve_final_state
index, r = self._prepare(prepared_specs)
File "/home/qiningliu/anaconda3/lib/python3.6/site-packages/conda/core/solve.py", line 560, in _prepare
self.subdirs, prepared_specs)
File "/home/qiningliu/anaconda3/lib/python3.6/site-packages/conda/core/index.py", line 215, in get_reduced_index
new_records = query_all(spec)
File "/home/qiningliu/anaconda3/lib/python3.6/site-packages/conda/core/index.py", line 184, in query_all
return tuple(concat(future.result() for future in as_completed(futures)))
File "/home/qiningliu/anaconda3/lib/python3.6/site-packages/conda/core/subdir_data.py", line 94, in query
self.load()
File "/home/qiningliu/anaconda3/lib/python3.6/site-packages/conda/core/subdir_data.py", line 148, in load
_internal_state = self._load()
File "/home/qiningliu/anaconda3/lib/python3.6/site-packages/conda/core/subdir_data.py", line 235, in _load
_internal_state = self._process_raw_repodata_str(raw_repodata_str)
File "/home/qiningliu/anaconda3/lib/python3.6/site-packages/conda/core/subdir_data.py", line 348, in _process_raw_repodata_str
info['fn'] = fn
TypeError: 'NoneType' object does not support item assignment
$ /home/qiningliu/anaconda3/bin/conda install -c pytorch -c conda-forge -c anaconda -c aramislab deformetrica
for your case isn't necesary to repeat the flag -c.
If you want to install several packages you just need to execute:
conda install -c pytorch conda-forge anaconda aramislab deformetrica

Trouble installing cryptography with pip3 (Ubuntu 16.04 LTS)

i'm currently having trouble installing cryptography with pip3.
I tried all the other solutions but non of them worked.
Here is the output from "sudo -H pip install cryptography":
Collecting cryptography
Using cached cryptography-1.5.tar.gz
Requirement already satisfied (use --upgrade to upgrade): idna>=2.0 in /usr/local/lib/python3.5/dist-packages (from cryptography)
Requirement already satisfied (use --upgrade to upgrade): pyasn1>=0.1.8 in /usr/lib/python3/dist-packages (from cryptography)
Requirement already satisfied (use --upgrade to upgrade): six>=1.4.1 in /usr/lib/python3/dist-packages (from cryptography)
Requirement already satisfied (use --upgrade to upgrade): setuptools>=11.3 in /usr/local/lib/python3.5/dist-packages (from cryptography)
Collecting cffi>=1.4.1 (from cryptography)
Using cached cffi-1.8.2.tar.gz
Requirement already satisfied (use --upgrade to upgrade): pycparser in /usr/local/lib/python3.5/dist-packages (from cffi>=1.4.1->cryptography)
Building wheels for collected packages: cryptography, cffi
Running setup.py bdist_wheel for cryptography ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-2saf6qpj/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpme9hnxc5pip-wheel- --python-tag cp35:
c/_cffi_backend.c:2:20: fatal error: Python.h: No such file or directory
compilation terminated.
Traceback (most recent call last):
File "/usr/lib/python3.5/distutils/unixccompiler.py", line 118, in _compile
extra_postargs)
File "/usr/lib/python3.5/distutils/ccompiler.py", line 909, in spawn
spawn(cmd, dry_run=self.dry_run)
File "/usr/lib/python3.5/distutils/spawn.py", line 36, in spawn
_spawn_posix(cmd, search_path, dry_run=dry_run)
File "/usr/lib/python3.5/distutils/spawn.py", line 159, in _spawn_posix
% (cmd, exit_status))
distutils.errors.DistutilsExecError: command 'x86_64-linux-gnu-gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.5/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.5/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.5/dist-packages/setuptools/command/bdist_egg.py", line 161, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "/usr/local/lib/python3.5/dist-packages/setuptools/command/bdist_egg.py", line 147, in call_command
self.run_command(cmdname)
File "/usr/lib/python3.5/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.5/dist-packages/setuptools/command/install_lib.py", line 11, in run
self.build()
File "/usr/lib/python3.5/distutils/command/install_lib.py", line 109, in build
self.run_command('build_ext')
File "/usr/lib/python3.5/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.5/dist-packages/setuptools/command/build_ext.py", line 77, in run
_build_ext.run(self)
File "/usr/lib/python3.5/distutils/command/build_ext.py", line 338, in run
self.build_extensions()
File "/usr/lib/python3.5/distutils/command/build_ext.py", line 447, in build_extensions
self._build_extensions_serial()
File "/usr/lib/python3.5/distutils/command/build_ext.py", line 472, in _build_extensions_serial
self.build_extension(ext)
File "/usr/local/lib/python3.5/dist-packages/setuptools/command/build_ext.py", line 198, in build_extension
_build_ext.build_extension(self, ext)
File "/usr/lib/python3.5/distutils/command/build_ext.py", line 532, in build_extension
depends=ext.depends)
File "/usr/lib/python3.5/distutils/ccompiler.py", line 574, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/usr/lib/python3.5/distutils/unixccompiler.py", line 120, in _compile
raise CompileError(msg)
distutils.errors.CompileError: command 'x86_64-linux-gnu-gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line 156, in save_modules
yield saved
File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line 197, in setup_context
yield
File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line 246, in run_setup
DirectorySandbox(setup_dir).run(runner)
File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line 276, in run
return func()
File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line 245, in runner
_execfile(setup_script, ns)
File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line 47, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-sjss3av8/cffi-1.8.2/setup.py", line 193, in <module>
return True
File "/usr/lib/python3.5/distutils/core.py", line 163, in setup
raise SystemExit("error: " + str(msg))
SystemExit: error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/setuptools/command/easy_install.py", line 1100, in run_setup
run_setup(setup_script, args)
File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line 249, in run_setup
raise
File "/usr/lib/python3.5/contextlib.py", line 77, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line 197, in setup_context
yield
File "/usr/lib/python3.5/contextlib.py", line 77, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line 168, in save_modules
saved_exc.resume()
File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line 143, in resume
six.reraise(type, exc, self._tb)
File "/usr/local/lib/python3.5/dist-packages/pkg_resources/_vendor/six.py", line 685, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line 156, in save_modules
yield saved
File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line 197, in setup_context
yield
File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line 246, in run_setup
DirectorySandbox(setup_dir).run(runner)
File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line 276, in run
return func()
File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line 245, in runner
_execfile(setup_script, ns)
File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line 47, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-sjss3av8/cffi-1.8.2/setup.py", line 193, in <module>
return True
File "/usr/lib/python3.5/distutils/core.py", line 163, in setup
raise SystemExit("error: " + str(msg))
SystemExit: error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-2saf6qpj/cryptography/setup.py", line 334, in <module>
**keywords_with_side_effects(sys.argv)
File "/usr/lib/python3.5/distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/local/lib/python3.5/dist-packages/setuptools/dist.py", line 348, in __init__
self.fetch_build_eggs(attrs['setup_requires'])
File "/usr/local/lib/python3.5/dist-packages/setuptools/dist.py", line 394, in fetch_build_eggs
replace_conflicting=True,
File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 851, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 1123, in best_match
return self.obtain(req, installer)
File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 1135, in obtain
return installer(requirement)
File "/usr/local/lib/python3.5/dist-packages/setuptools/dist.py", line 461, in fetch_build_egg
return cmd.easy_install(req)
File "/usr/local/lib/python3.5/dist-packages/setuptools/command/easy_install.py", line 664, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/usr/local/lib/python3.5/dist-packages/setuptools/command/easy_install.py", line 694, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/usr/local/lib/python3.5/dist-packages/setuptools/command/easy_install.py", line 875, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/usr/local/lib/python3.5/dist-packages/setuptools/command/easy_install.py", line 1114, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/usr/local/lib/python3.5/dist-packages/setuptools/command/easy_install.py", line 1102, in run_setup
raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Failed building wheel for cryptography
Running setup.py clean for cryptography
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-2saf6qpj/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" clean --all:
c/_cffi_backend.c:2:20: fatal error: Python.h: No such file or directory
compilation terminated.
Traceback (most recent call last):
File "/usr/lib/python3.5/distutils/unixccompiler.py", line 118, in _compile
extra_postargs)
File "/usr/lib/python3.5/distutils/ccompiler.py", line 909, in spawn
spawn(cmd, dry_run=self.dry_run)
File "/usr/lib/python3.5/distutils/spawn.py", line 36, in spawn
_spawn_posix(cmd, search_path, dry_run=dry_run)
File "/usr/lib/python3.5/distutils/spawn.py", line 159, in _spawn_posix
% (cmd, exit_status))
distutils.errors.DistutilsExecError: command 'x86_64-linux-gnu-gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.5/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.5/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.5/dist-packages/setuptools/command/bdist_egg.py", line 161, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "/usr/local/lib/python3.5/dist-packages/setuptools/command/bdist_egg.py", line 147, in call_command
self.run_command(cmdname)
File "/usr/lib/python3.5/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.5/dist-packages/setuptools/command/install_lib.py", line 11, in run
self.build()
File "/usr/lib/python3.5/distutils/command/install_lib.py", line 109, in build
self.run_command('build_ext')
File "/usr/lib/python3.5/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.5/dist-packages/setuptools/command/build_ext.py", line 77, in run
_build_ext.run(self)
File "/usr/lib/python3.5/distutils/command/build_ext.py", line 338, in run
self.build_extensions()
File "/usr/lib/python3.5/distutils/command/build_ext.py", line 447, in build_extensions
self._build_extensions_serial()
File "/usr/lib/python3.5/distutils/command/build_ext.py", line 472, in _build_extensions_serial
self.build_extension(ext)
File "/usr/local/lib/python3.5/dist-packages/setuptools/command/build_ext.py", line 198, in build_extension
_build_ext.build_extension(self, ext)
File "/usr/lib/python3.5/distutils/command/build_ext.py", line 532, in build_extension
depends=ext.depends)
File "/usr/lib/python3.5/distutils/ccompiler.py", line 574, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/usr/lib/python3.5/distutils/unixccompiler.py", line 120, in _compile
raise CompileError(msg)
distutils.errors.CompileError: command 'x86_64-linux-gnu-gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line 156, in save_modules
yield saved
File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line 197, in setup_context
yield
File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line 246, in run_setup
DirectorySandbox(setup_dir).run(runner)
File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line 276, in run
return func()
File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line 245, in runner
_execfile(setup_script, ns)
File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line 47, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-rfvxg0ae/cffi-1.8.2/setup.py", line 193, in <module>
return True
File "/usr/lib/python3.5/distutils/core.py", line 163, in setup
raise SystemExit("error: " + str(msg))
SystemExit: error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/setuptools/command/easy_install.py", line 1100, in run_setup
run_setup(setup_script, args)
File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line 249, in run_setup
raise
File "/usr/lib/python3.5/contextlib.py", line 77, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line 197, in setup_context
yield
File "/usr/lib/python3.5/contextlib.py", line 77, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line 168, in save_modules
saved_exc.resume()
File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line 143, in resume
six.reraise(type, exc, self._tb)
File "/usr/local/lib/python3.5/dist-packages/pkg_resources/_vendor/six.py", line 685, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line 156, in save_modules
yield saved
File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line 197, in setup_context
yield
File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line 246, in run_setup
DirectorySandbox(setup_dir).run(runner)
File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line 276, in run
return func()
File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line 245, in runner
_execfile(setup_script, ns)
File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line 47, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-rfvxg0ae/cffi-1.8.2/setup.py", line 193, in <module>
return True
File "/usr/lib/python3.5/distutils/core.py", line 163, in setup
raise SystemExit("error: " + str(msg))
SystemExit: error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-2saf6qpj/cryptography/setup.py", line 334, in <module>
**keywords_with_side_effects(sys.argv)
File "/usr/lib/python3.5/distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/local/lib/python3.5/dist-packages/setuptools/dist.py", line 348, in __init__
self.fetch_build_eggs(attrs['setup_requires'])
File "/usr/local/lib/python3.5/dist-packages/setuptools/dist.py", line 394, in fetch_build_eggs
replace_conflicting=True,
File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 851, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 1123, in best_match
return self.obtain(req, installer)
File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 1135, in obtain
return installer(requirement)
File "/usr/local/lib/python3.5/dist-packages/setuptools/dist.py", line 461, in fetch_build_egg
return cmd.easy_install(req)
File "/usr/local/lib/python3.5/dist-packages/setuptools/command/easy_install.py", line 664, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/usr/local/lib/python3.5/dist-packages/setuptools/command/easy_install.py", line 694, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/usr/local/lib/python3.5/dist-packages/setuptools/command/easy_install.py", line 875, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/usr/local/lib/python3.5/dist-packages/setuptools/command/easy_install.py", line 1114, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/usr/local/lib/python3.5/dist-packages/setuptools/command/easy_install.py", line 1102, in run_setup
raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Failed cleaning build dir for cryptography
Running setup.py bdist_wheel for cffi ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-2saf6qpj/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmp689jaw0cpip-wheel- --python-tag cp35:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.5
creating build/lib.linux-x86_64-3.5/cffi
copying cffi/cffi_opcode.py -> build/lib.linux-x86_64-3.5/cffi
copying cffi/cparser.py -> build/lib.linux-x86_64-3.5/cffi
copying cffi/recompiler.py -> build/lib.linux-x86_64-3.5/cffi
copying cffi/vengine_gen.py -> build/lib.linux-x86_64-3.5/cffi
copying cffi/commontypes.py -> build/lib.linux-x86_64-3.5/cffi
copying cffi/verifier.py -> build/lib.linux-x86_64-3.5/cffi
copying cffi/model.py -> build/lib.linux-x86_64-3.5/cffi
copying cffi/api.py -> build/lib.linux-x86_64-3.5/cffi
copying cffi/setuptools_ext.py -> build/lib.linux-x86_64-3.5/cffi
copying cffi/vengine_cpy.py -> build/lib.linux-x86_64-3.5/cffi
copying cffi/ffiplatform.py -> build/lib.linux-x86_64-3.5/cffi
copying cffi/__init__.py -> build/lib.linux-x86_64-3.5/cffi
copying cffi/lock.py -> build/lib.linux-x86_64-3.5/cffi
copying cffi/backend_ctypes.py -> build/lib.linux-x86_64-3.5/cffi
copying cffi/_cffi_include.h -> build/lib.linux-x86_64-3.5/cffi
copying cffi/parse_c_type.h -> build/lib.linux-x86_64-3.5/cffi
copying cffi/_embedding.h -> build/lib.linux-x86_64-3.5/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.linux-x86_64-3.5
creating build/temp.linux-x86_64-3.5/c
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE__THREAD -I/usr/include/python3.5m -c c/_cffi_backend.c -o build/temp.linux-x86_64-3.5/c/_cffi_backend.o
c/_cffi_backend.c:2:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Failed building wheel for cffi
Running setup.py clean for cffi
Failed to build cryptography cffi
Installing collected packages: cffi, cryptography
Running setup.py install for cffi ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-2saf6qpj/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-7jmqgdpf-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.5
creating build/lib.linux-x86_64-3.5/cffi
copying cffi/cffi_opcode.py -> build/lib.linux-x86_64-3.5/cffi
copying cffi/cparser.py -> build/lib.linux-x86_64-3.5/cffi
copying cffi/recompiler.py -> build/lib.linux-x86_64-3.5/cffi
copying cffi/vengine_gen.py -> build/lib.linux-x86_64-3.5/cffi
copying cffi/commontypes.py -> build/lib.linux-x86_64-3.5/cffi
copying cffi/verifier.py -> build/lib.linux-x86_64-3.5/cffi
copying cffi/model.py -> build/lib.linux-x86_64-3.5/cffi
copying cffi/api.py -> build/lib.linux-x86_64-3.5/cffi
copying cffi/setuptools_ext.py -> build/lib.linux-x86_64-3.5/cffi
copying cffi/vengine_cpy.py -> build/lib.linux-x86_64-3.5/cffi
copying cffi/ffiplatform.py -> build/lib.linux-x86_64-3.5/cffi
copying cffi/__init__.py -> build/lib.linux-x86_64-3.5/cffi
copying cffi/lock.py -> build/lib.linux-x86_64-3.5/cffi
copying cffi/backend_ctypes.py -> build/lib.linux-x86_64-3.5/cffi
copying cffi/_cffi_include.h -> build/lib.linux-x86_64-3.5/cffi
copying cffi/parse_c_type.h -> build/lib.linux-x86_64-3.5/cffi
copying cffi/_embedding.h -> build/lib.linux-x86_64-3.5/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.linux-x86_64-3.5
creating build/temp.linux-x86_64-3.5/c
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE__THREAD -I/usr/include/python3.5m -c c/_cffi_backend.c -o build/temp.linux-x86_64-3.5/c/_cffi_backend.o
c/_cffi_backend.c:2:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-2saf6qpj/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-7jmqgdpf-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-2saf6qpj/cffi/
I tried understanding the errors but all it says is "failed with error code 1" :/
Checking out other questions, they mentioned about the dependencies for cryptography which is all installed and up-to-date (sudo apt-get install build-essential libssl-dev libffi-dev python-dev):
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.1ubuntu2).
libffi-dev is already the newest version (3.2.1-4).
python-dev is already the newest version (2.7.11-1).
libssl-dev is already the newest version (1.0.2g-1ubuntu4.2).
0 upgraded, 0 newly installed, 0 to remove and 135 not upgraded.
pip3 version:
pip 8.1.2 from /usr/local/lib/python3.5/dist-packages (python 3.5)
Not even easy_install worked. I really don't know what i'm doing wrong here, please help.
From the Python.h: No such file or directory error messages appearing in various places of the log, you need to install python3-dev:
sudo apt install python3-dev

Resources