Skip to content

Instantly share code, notes, and snippets.

@mithi
Created July 12, 2022 18:45
Show Gist options
  • Save mithi/2ac58060dcbac9db4cc65ac6ab9fde8c to your computer and use it in GitHub Desktop.
Save mithi/2ac58060dcbac9db4cc65ac6ab9fde8c to your computer and use it in GitHub Desktop.
(env_tensorflow) ➜ portal python3.8 -m pip install datature-hub==0.2.0
Collecting datature-hub==0.2.0
Using cached datature_hub-0.2.0-py3-none-any.whl (9.4 kB)
Collecting opencv-python==4.5.1.48
Using cached opencv-python-4.5.1.48.tar.gz (88.3 MB)
Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [580 lines of output]
Ignoring numpy: markers 'python_version == "3.6" and platform_machine != "aarch64"' don't match your environment
Ignoring numpy: markers 'python_version >= "3.6" and sys_platform == "linux" and platform_machine == "aarch64"' don't match your environment
Ignoring numpy: markers 'python_version == "3.7" and platform_machine != "aarch64"' don't match your environment
Ignoring numpy: markers 'python_version >= "3.9" and platform_machine != "aarch64"' don't match your environment
Collecting setuptools
Using cached setuptools-63.1.0-py3-none-any.whl (1.2 MB)
Collecting wheel
Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB)
Collecting scikit-build
Using cached scikit_build-0.15.0-py2.py3-none-any.whl (77 kB)
Collecting cmake
Using cached cmake-3.22.5-py2.py3-none-macosx_10_10_universal2.macosx_10_10_x86_64.macosx_11_0_arm64.macosx_11_0_universal2.whl (75.2 MB)
Collecting pip
Using cached pip-22.1.2-py3-none-any.whl (2.1 MB)
Collecting numpy==1.17.3
Using cached numpy-1.17.3.zip (6.4 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting packaging
Using cached packaging-21.3-py3-none-any.whl (40 kB)
Collecting distro
Using cached distro-1.7.0-py3-none-any.whl (20 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
╰─> [247 lines of output]
Running from numpy source directory.
blas_opt_info:
blas_mkl_info:
customize UnixCCompiler
libraries mkl_rt not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
blis_info:
customize UnixCCompiler
libraries blis not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
openblas_info:
customize UnixCCompiler
customize UnixCCompiler
libraries openblas not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_3_10_blas_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
libraries tatlas not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_3_10_blas_info:
customize UnixCCompiler
libraries satlas not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_blas_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
libraries ptf77blas,ptcblas,atlas not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_blas_info:
customize UnixCCompiler
libraries f77blas,cblas,atlas not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
accelerate_info:
customize UnixCCompiler
libraries accelerate not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib', '/usr/local/lib', '/usr/lib']
Library accelerate was not found. Ignoring
customize UnixCCompiler
libraries veclib not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib', '/usr/local/lib', '/usr/lib']
Library veclib was not found. Ignoring
FOUND:
extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers']
extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]
FOUND:
extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers']
extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
define_macros = [('NO_ATLAS_INFO', 3), ('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 ['/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
openblas_lapack_info:
customize UnixCCompiler
customize UnixCCompiler
libraries openblas not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
openblas_clapack_info:
customize UnixCCompiler
customize UnixCCompiler
libraries openblas,lapack not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
flame_info:
customize UnixCCompiler
libraries flame not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
libraries lapack_atlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib
customize UnixCCompiler
libraries tatlas,tatlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/local/lib
customize UnixCCompiler
libraries tatlas,tatlas not found in /usr/local/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib
customize UnixCCompiler
libraries tatlas,tatlas not found in /usr/lib
<class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
NOT AVAILABLE
atlas_3_10_info:
customize UnixCCompiler
libraries lapack_atlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib
customize UnixCCompiler
libraries satlas,satlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/local/lib
customize UnixCCompiler
libraries satlas,satlas not found in /usr/local/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib
customize UnixCCompiler
libraries satlas,satlas not found in /usr/lib
<class 'numpy.distutils.system_info.atlas_3_10_info'>
NOT AVAILABLE
atlas_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
libraries lapack_atlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib
customize UnixCCompiler
libraries ptf77blas,ptcblas,atlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/local/lib
customize UnixCCompiler
libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib
customize UnixCCompiler
libraries ptf77blas,ptcblas,atlas not found in /usr/lib
<class 'numpy.distutils.system_info.atlas_threads_info'>
NOT AVAILABLE
atlas_info:
customize UnixCCompiler
libraries lapack_atlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib
customize UnixCCompiler
libraries f77blas,cblas,atlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/local/lib
customize UnixCCompiler
libraries f77blas,cblas,atlas not found in /usr/local/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib
customize UnixCCompiler
libraries f77blas,cblas,atlas not found in /usr/lib
<class 'numpy.distutils.system_info.atlas_info'>
NOT AVAILABLE
FOUND:
extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers']
extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]
/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib/python3.8/site-packages/setuptools/_distutils/dist.py:257: UserWarning: Unknown distribution option: 'define_macros'
warnings.warn(msg)
running bdist_wheel
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building py_modules sources
creating build
creating build/src.macosx-11.0-arm64-3.8
creating build/src.macosx-11.0-arm64-3.8/numpy
creating build/src.macosx-11.0-arm64-3.8/numpy/distutils
building library "npymath" sources
get_default_fcompiler: matching types: '['gnu95', 'nag', 'absoft', 'ibm', 'intel', 'gnu', 'g95', 'pg']'
customize Gnu95FCompiler
Could not locate executable gfortran
Could not locate executable f95
customize NAGFCompiler
customize AbsoftFCompiler
Could not locate executable f90
Could not locate executable f77
customize IBMFCompiler
Could not locate executable xlf90
Could not locate executable xlf
customize IntelFCompiler
Could not locate executable ifort
Could not locate executable ifc
customize GnuFCompiler
Could not locate executable g77
customize G95FCompiler
Could not locate executable g95
customize PGroupFCompiler
Could not locate executable pgfortran
don't know how to compile Fortran code on platform 'posix'
C compiler: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/include -arch arm64 -fPIC -O2 -isystem /opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/include -arch arm64
compile options: '-Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/include/python3.8 -c'
clang: _configtest.c
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
failure.
removing: _configtest.c _configtest.o
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-bf6dh4xb/numpy_4f8d6862c4dd4346bdd264ca2c135eb5/setup.py", line 443, in <module>
setup_package()
File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-bf6dh4xb/numpy_4f8d6862c4dd4346bdd264ca2c135eb5/setup.py", line 435, in setup_package
setup(**metadata)
File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-bf6dh4xb/numpy_4f8d6862c4dd4346bdd264ca2c135eb5/numpy/distutils/core.py", line 171, in setup
return old_setup(**new_attr)
File "/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib/python3.8/site-packages/setuptools/__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 177, in setup
return run_commands(dist)
File "/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 193, in run_commands
dist.run_commands()
File "/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
self.run_command(cmd)
File "/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib/python3.8/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 317, in run_command
self.distribution.run_command(command)
File "/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib/python3.8/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-bf6dh4xb/numpy_4f8d6862c4dd4346bdd264ca2c135eb5/numpy/distutils/command/build.py", line 47, in run
old_build.run(self)
File "/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib/python3.8/site-packages/setuptools/_distutils/command/build.py", line 131, in run
self.run_command(cmd_name)
File "/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 317, in run_command
self.distribution.run_command(command)
File "/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib/python3.8/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-bf6dh4xb/numpy_4f8d6862c4dd4346bdd264ca2c135eb5/numpy/distutils/command/build_src.py", line 142, in run
self.build_sources()
File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-bf6dh4xb/numpy_4f8d6862c4dd4346bdd264ca2c135eb5/numpy/distutils/command/build_src.py", line 153, in build_sources
self.build_library_sources(*libname_info)
File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-bf6dh4xb/numpy_4f8d6862c4dd4346bdd264ca2c135eb5/numpy/distutils/command/build_src.py", line 286, in build_library_sources
sources = self.generate_sources(sources, (lib_name, build_info))
File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-bf6dh4xb/numpy_4f8d6862c4dd4346bdd264ca2c135eb5/numpy/distutils/command/build_src.py", line 369, in generate_sources
source = func(extension, build_dir)
File "numpy/core/setup.py", line 669, in get_mathlib_info
raise RuntimeError("Broken toolchain: cannot link a simple C program")
RuntimeError: Broken toolchain: cannot link a simple C program
[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: cmake, wheel, setuptools, pyparsing, pip, numpy, distro, packaging, scikit-build
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
╰─> [258 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 ['/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
blis_info:
customize UnixCCompiler
libraries blis not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
openblas_info:
customize UnixCCompiler
customize UnixCCompiler
libraries openblas not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_3_10_blas_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
libraries tatlas not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_3_10_blas_info:
customize UnixCCompiler
libraries satlas not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_blas_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
libraries ptf77blas,ptcblas,atlas not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_blas_info:
customize UnixCCompiler
libraries f77blas,cblas,atlas not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
accelerate_info:
customize UnixCCompiler
libraries accelerate not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib', '/usr/local/lib', '/usr/lib']
Library accelerate was not found. Ignoring
customize UnixCCompiler
libraries veclib not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib', '/usr/local/lib', '/usr/lib']
Library veclib was not found. Ignoring
FOUND:
extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers']
extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]
FOUND:
extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers']
extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
define_macros = [('NO_ATLAS_INFO', 3), ('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 ['/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
openblas_lapack_info:
customize UnixCCompiler
customize UnixCCompiler
libraries openblas not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
openblas_clapack_info:
customize UnixCCompiler
customize UnixCCompiler
libraries openblas,lapack not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
flame_info:
customize UnixCCompiler
libraries flame not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
libraries lapack_atlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib
customize UnixCCompiler
libraries tatlas,tatlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/local/lib
customize UnixCCompiler
libraries tatlas,tatlas not found in /usr/local/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib
customize UnixCCompiler
libraries tatlas,tatlas not found in /usr/lib
<class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
NOT AVAILABLE
atlas_3_10_info:
customize UnixCCompiler
libraries lapack_atlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib
customize UnixCCompiler
libraries satlas,satlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/local/lib
customize UnixCCompiler
libraries satlas,satlas not found in /usr/local/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib
customize UnixCCompiler
libraries satlas,satlas not found in /usr/lib
<class 'numpy.distutils.system_info.atlas_3_10_info'>
NOT AVAILABLE
atlas_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
libraries lapack_atlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib
customize UnixCCompiler
libraries ptf77blas,ptcblas,atlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/local/lib
customize UnixCCompiler
libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib
customize UnixCCompiler
libraries ptf77blas,ptcblas,atlas not found in /usr/lib
<class 'numpy.distutils.system_info.atlas_threads_info'>
NOT AVAILABLE
atlas_info:
customize UnixCCompiler
libraries lapack_atlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib
customize UnixCCompiler
libraries f77blas,cblas,atlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/local/lib
customize UnixCCompiler
libraries f77blas,cblas,atlas not found in /usr/local/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib
customize UnixCCompiler
libraries f77blas,cblas,atlas not found in /usr/lib
<class 'numpy.distutils.system_info.atlas_info'>
NOT AVAILABLE
FOUND:
extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers']
extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]
/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib/python3.8/site-packages/setuptools/_distutils/dist.py:257: UserWarning: Unknown distribution option: 'define_macros'
warnings.warn(msg)
running install
/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building py_modules sources
building library "npymath" sources
get_default_fcompiler: matching types: '['gnu95', 'nag', 'absoft', 'ibm', 'intel', 'gnu', 'g95', 'pg']'
customize Gnu95FCompiler
Could not locate executable gfortran
Could not locate executable f95
customize NAGFCompiler
customize AbsoftFCompiler
Could not locate executable f90
Could not locate executable f77
customize IBMFCompiler
Could not locate executable xlf90
Could not locate executable xlf
customize IntelFCompiler
Could not locate executable ifort
Could not locate executable ifc
customize GnuFCompiler
Could not locate executable g77
customize G95FCompiler
Could not locate executable g95
customize PGroupFCompiler
Could not locate executable pgfortran
don't know how to compile Fortran code on platform 'posix'
C compiler: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/include -arch arm64 -fPIC -O2 -isystem /opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/include -arch arm64
compile options: '-Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/include/python3.8 -c'
clang: _configtest.c
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
failure.
removing: _configtest.c _configtest.o
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-bf6dh4xb/numpy_4f8d6862c4dd4346bdd264ca2c135eb5/setup.py", line 443, in <module>
setup_package()
File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-bf6dh4xb/numpy_4f8d6862c4dd4346bdd264ca2c135eb5/setup.py", line 435, in setup_package
setup(**metadata)
File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-bf6dh4xb/numpy_4f8d6862c4dd4346bdd264ca2c135eb5/numpy/distutils/core.py", line 171, in setup
return old_setup(**new_attr)
File "/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib/python3.8/site-packages/setuptools/__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 177, in setup
return run_commands(dist)
File "/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 193, in run_commands
dist.run_commands()
File "/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
self.run_command(cmd)
File "/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib/python3.8/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-bf6dh4xb/numpy_4f8d6862c4dd4346bdd264ca2c135eb5/numpy/distutils/command/install.py", line 62, in run
r = self.setuptools_run()
File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-bf6dh4xb/numpy_4f8d6862c4dd4346bdd264ca2c135eb5/numpy/distutils/command/install.py", line 36, in setuptools_run
return distutils_install.run(self)
File "/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib/python3.8/site-packages/setuptools/_distutils/command/install.py", line 695, in run
self.run_command('build')
File "/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 317, in run_command
self.distribution.run_command(command)
File "/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib/python3.8/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-bf6dh4xb/numpy_4f8d6862c4dd4346bdd264ca2c135eb5/numpy/distutils/command/build.py", line 47, in run
old_build.run(self)
File "/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib/python3.8/site-packages/setuptools/_distutils/command/build.py", line 131, in run
self.run_command(cmd_name)
File "/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 317, in run_command
self.distribution.run_command(command)
File "/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib/python3.8/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/opt/homebrew/Caskroom/miniforge/base/envs/env_tensorflow/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-bf6dh4xb/numpy_4f8d6862c4dd4346bdd264ca2c135eb5/numpy/distutils/command/build_src.py", line 142, in run
self.build_sources()
File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-bf6dh4xb/numpy_4f8d6862c4dd4346bdd264ca2c135eb5/numpy/distutils/command/build_src.py", line 153, in build_sources
self.build_library_sources(*libname_info)
File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-bf6dh4xb/numpy_4f8d6862c4dd4346bdd264ca2c135eb5/numpy/distutils/command/build_src.py", line 286, in build_library_sources
sources = self.generate_sources(sources, (lib_name, build_info))
File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-bf6dh4xb/numpy_4f8d6862c4dd4346bdd264ca2c135eb5/numpy/distutils/command/build_src.py", line 369, in generate_sources
source = func(extension, build_dir)
File "numpy/core/setup.py", line 669, in get_mathlib_info
raise RuntimeError("Broken toolchain: cannot link a simple C program")
RuntimeError: Broken toolchain: cannot link a simple C program
[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.
@mithi
Copy link
Author

mithi commented Jul 12, 2022

  ERROR: Command errored out with exit status 1:
     command: /opt/homebrew/Caskroom/miniforge/base/envs/myenv/bin/python3.8 /opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/tmpo8pkjxg6
         cwd: /private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-n60ofphz/numpy_fe2aa081451442bd80f2e2a5216ca2ca
    Complete output (206 lines):
    /private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-n60ofphz/numpy_fe2aa081451442bd80f2e2a5216ca2ca/tools/cythonize.py:75: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
      required_version = LooseVersion('0.29.14')
    /private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-n60ofphz/numpy_fe2aa081451442bd80f2e2a5216ca2ca/tools/cythonize.py:77: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
      if LooseVersion(cython_version) < required_version:
    Processing numpy/random/_bounded_integers.pxd.in
    Processing numpy/random/_philox.pyx
    Processing numpy/random/_bit_generator.pyx
    Processing numpy/random/_bounded_integers.pyx.in
    Processing numpy/random/_sfc64.pyx
    Processing numpy/random/_mt19937.pyx
    Processing numpy/random/mtrand.pyx
    Processing numpy/random/_generator.pyx
    Processing numpy/random/_pcg64.pyx
    Processing numpy/random/_common.pyx
    Cythonizing sources
    blas_opt_info:
    blas_mkl_info:
    customize UnixCCompiler
      libraries mkl_rt not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
    
    blis_info:
      libraries blis not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
    
    openblas_info:
      libraries openblas not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
    
    atlas_3_10_blas_threads_info:
    Setting PTATLAS=ATLAS
      libraries tatlas not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
    
    atlas_3_10_blas_info:
      libraries satlas not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
    
    atlas_blas_threads_info:
    Setting PTATLAS=ATLAS
      libraries ptf77blas,ptcblas,atlas not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
    
    atlas_blas_info:
      libraries f77blas,cblas,atlas not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
    
    accelerate_info:
      libraries accelerate not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
    Library accelerate was not found. Ignoring
      libraries veclib not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
    Library veclib was not found. Ignoring
      FOUND:
        extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers']
        extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
        define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]
    
      FOUND:
        extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers']
        extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
        define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]
    
    non-existing path in 'numpy/distutils': 'site.cfg'
    lapack_opt_info:
    lapack_mkl_info:
      libraries mkl_rt not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
    
    openblas_lapack_info:
      libraries openblas not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
    
    openblas_clapack_info:
      libraries openblas,lapack not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
    
    flame_info:
      libraries flame not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
    
    atlas_3_10_threads_info:
    Setting PTATLAS=ATLAS
      libraries lapack_atlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib
      libraries tatlas,tatlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib
      libraries lapack_atlas not found in /usr/local/lib
      libraries tatlas,tatlas not found in /usr/local/lib
      libraries lapack_atlas not found in /usr/lib
      libraries tatlas,tatlas not found in /usr/lib
    <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
      NOT AVAILABLE
    
    atlas_3_10_info:
      libraries lapack_atlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib
      libraries satlas,satlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib
      libraries lapack_atlas not found in /usr/local/lib
      libraries satlas,satlas not found in /usr/local/lib
      libraries lapack_atlas not found in /usr/lib
      libraries satlas,satlas not found in /usr/lib
    <class 'numpy.distutils.system_info.atlas_3_10_info'>
      NOT AVAILABLE
    
    atlas_threads_info:
    Setting PTATLAS=ATLAS
      libraries lapack_atlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib
      libraries ptf77blas,ptcblas,atlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib
      libraries lapack_atlas not found in /usr/local/lib
      libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
      libraries lapack_atlas not found in /usr/lib
      libraries ptf77blas,ptcblas,atlas not found in /usr/lib
    <class 'numpy.distutils.system_info.atlas_threads_info'>
      NOT AVAILABLE
    
    atlas_info:
      libraries lapack_atlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib
      libraries f77blas,cblas,atlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib
      libraries lapack_atlas not found in /usr/local/lib
      libraries f77blas,cblas,atlas not found in /usr/local/lib
      libraries lapack_atlas not found in /usr/lib
      libraries f77blas,cblas,atlas not found in /usr/lib
    <class 'numpy.distutils.system_info.atlas_info'>
      NOT AVAILABLE
    
      FOUND:
        extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers']
        extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
        define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]
    
    running dist_info
    running build_src
    build_src
    building py_modules sources
    creating build
    creating build/src.macosx-11.0-arm64-3.8
    creating build/src.macosx-11.0-arm64-3.8/numpy
    creating build/src.macosx-11.0-arm64-3.8/numpy/distutils
    building library "npymath" sources
    Could not locate executable gfortran
    Could not locate executable f95
    Could not locate executable f90
    Could not locate executable f77
    Could not locate executable xlf90
    Could not locate executable xlf
    Could not locate executable ifort
    Could not locate executable ifc
    Could not locate executable g77
    Could not locate executable g95
    Could not locate executable pgfortran
    don't know how to compile Fortran code on platform 'posix'
    xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
    Running from numpy source directory.
    setup.py:461: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
      run_build = parse_setuppy_commands()
    /private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-build-env-_1_pnsmb/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py:257: UserWarning: Unknown distribution option: 'define_macros'
      warnings.warn(msg)
    Traceback (most recent call last):
      File "/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 349, in <module>
        main()
      File "/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 331, in main
        json_out['return_val'] = hook(**hook_input['kwargs'])
      File "/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 151, in prepare_metadata_for_build_wheel
        return hook(metadata_directory, config_settings)
      File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-build-env-_1_pnsmb/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 188, in prepare_metadata_for_build_wheel
        self.run_setup()
      File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-build-env-_1_pnsmb/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 281, in run_setup
        super(_BuildMetaLegacyBackend,
      File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-build-env-_1_pnsmb/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 174, in run_setup
        exec(compile(code, __file__, 'exec'), locals())
      File "setup.py", line 488, in <module>
        setup_package()
      File "setup.py", line 480, in setup_package
        setup(**metadata)
      File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-n60ofphz/numpy_fe2aa081451442bd80f2e2a5216ca2ca/numpy/distutils/core.py", line 171, in setup
        return old_setup(**new_attr)
      File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-build-env-_1_pnsmb/overlay/lib/python3.8/site-packages/setuptools/__init__.py", line 87, in setup
        return distutils.core.setup(**attrs)
      File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-build-env-_1_pnsmb/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 177, in setup
        return run_commands(dist)
      File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-build-env-_1_pnsmb/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 193, in run_commands
        dist.run_commands()
      File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-build-env-_1_pnsmb/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
        self.run_command(cmd)
      File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-build-env-_1_pnsmb/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 1217, in run_command
        super().run_command(command)
      File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-build-env-_1_pnsmb/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
        cmd_obj.run()
      File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-build-env-_1_pnsmb/overlay/lib/python3.8/site-packages/setuptools/command/dist_info.py", line 35, in run
        egg_info.run()
      File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-n60ofphz/numpy_fe2aa081451442bd80f2e2a5216ca2ca/numpy/distutils/command/egg_info.py", line 26, in run
        self.run_command("build_src")
      File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-build-env-_1_pnsmb/overlay/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 317, in run_command
        self.distribution.run_command(command)
      File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-build-env-_1_pnsmb/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 1217, in run_command
        super().run_command(command)
      File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-build-env-_1_pnsmb/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
        cmd_obj.run()
      File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-n60ofphz/numpy_fe2aa081451442bd80f2e2a5216ca2ca/numpy/distutils/command/build_src.py", line 146, in run
        self.build_sources()
      File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-n60ofphz/numpy_fe2aa081451442bd80f2e2a5216ca2ca/numpy/distutils/command/build_src.py", line 157, in build_sources
        self.build_library_sources(*libname_info)
      File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-n60ofphz/numpy_fe2aa081451442bd80f2e2a5216ca2ca/numpy/distutils/command/build_src.py", line 290, in build_library_sources
        sources = self.generate_sources(sources, (lib_name, build_info))
      File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-n60ofphz/numpy_fe2aa081451442bd80f2e2a5216ca2ca/numpy/distutils/command/build_src.py", line 380, in generate_sources
        source = func(extension, build_dir)
      File "numpy/core/setup.py", line 661, in get_mathlib_info
        raise RuntimeError("Broken toolchain: cannot link a simple C program")
    RuntimeError: Broken toolchain: cannot link a simple C program
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/01/1b/d3ddcabd5817be02df0e6ee20d64f77ff6d0d97f83b77f65e98c8a651981/numpy-1.18.5.zip#sha256=34e96e9dae65c4839bd80012023aadd6ee2ccb73ce7fdf3074c62f301e63120b (from https://pypi.org/simple/numpy/) (requires-python:>=3.5). Command errored out with exit status 1: /opt/homebrew/Caskroom/miniforge/base/envs/myenv/bin/python3.8 /opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/tmpo8pkjxg6 Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement numpy==1.18.5 (from versions: 1.3.0, 1.4.1, 1.5.0, 1.5.1, 1.6.0, 1.6.1, 1.6.2, 1.7.0, 1.7.1, 1.7.2, 1.8.0, 1.8.1, 1.8.2, 1.9.0, 1.9.1, 1.9.2, 1.9.3, 1.10.0.post2, 1.10.1, 1.10.2, 1.10.4, 1.11.0, 1.11.1, 1.11.2, 1.11.3, 1.12.0, 1.12.1, 1.13.0rc1, 1.13.0rc2, 1.13.0, 1.13.1, 1.13.3, 1.14.0rc1, 1.14.0, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.14.5, 1.14.6, 1.15.0rc1, 1.15.0rc2, 1.15.0, 1.15.1, 1.15.2, 1.15.3, 1.15.4, 1.16.0rc1, 1.16.0rc2, 1.16.0, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.16.6, 1.17.0rc1, 1.17.0rc2, 1.17.0, 1.17.1, 1.17.2, 1.17.3, 1.17.4, 1.17.5, 1.18.0rc1, 1.18.0, 1.18.1, 1.18.2, 1.18.3, 1.18.4, 1.18.5, 1.19.0rc1, 1.19.0rc2, 1.19.0, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.19.5, 1.20.0rc1, 1.20.0rc2, 1.20.0, 1.20.1, 1.20.2, 1.20.3, 1.21.0rc1, 1.21.0rc2, 1.21.0, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.22.0rc1, 1.22.0rc2, 1.22.0rc3, 1.22.0, 1.22.1, 1.22.2, 1.22.3, 1.22.4, 1.23.0rc1, 1.23.0rc2, 1.23.0rc3, 1.23.0, 1.23.1)
ERROR: No matching distribution found for numpy==1.18.5

@mithi
Copy link
Author

mithi commented Jul 12, 2022

(myenv) ➜  portal python3.8 -m pip install opencv-python==4.5.1.48 
Collecting opencv-python==4.5.1.48
  Using cached opencv-python-4.5.1.48.tar.gz (88.3 MB)
  Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:
   command: /opt/homebrew/Caskroom/miniforge/base/envs/myenv/bin/python3.8 /private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-standalone-pip-_nqftlxx/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-build-env-qer7y029/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel scikit-build cmake pip 'numpy==1.13.3; python_version=='"'"'3.6'"'"' and platform_machine != '"'"'aarch64'"'"'' 'numpy==1.19.3; python_version>='"'"'3.6'"'"' and sys_platform == '"'"'linux'"'"' and platform_machine == '"'"'aarch64'"'"'' 'numpy==1.14.5; python_version=='"'"'3.7'"'"' and platform_machine != '"'"'aarch64'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"' and platform_machine != '"'"'aarch64'"'"'' 'numpy==1.19.3; python_version>='"'"'3.9'"'"' and platform_machine != '"'"'aarch64'"'"''
       cwd: None
  Complete output (561 lines):
  Ignoring numpy: markers 'python_version == "3.6" and platform_machine != "aarch64"' don't match your environment
  Ignoring numpy: markers 'python_version >= "3.6" and sys_platform == "linux" and platform_machine == "aarch64"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.7" and platform_machine != "aarch64"' don't match your environment
  Ignoring numpy: markers 'python_version >= "3.9" and platform_machine != "aarch64"' don't match your environment
  Collecting setuptools
    Using cached setuptools-63.1.0-py3-none-any.whl (1.2 MB)
  Collecting wheel
    Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB)
  Collecting scikit-build
    Using cached scikit_build-0.15.0-py2.py3-none-any.whl (77 kB)
  Collecting cmake
    Using cached cmake-3.22.5-py2.py3-none-macosx_10_10_universal2.macosx_10_10_x86_64.macosx_11_0_arm64.macosx_11_0_universal2.whl (75.2 MB)
  Collecting pip
    Using cached pip-22.1.2-py3-none-any.whl (2.1 MB)
  Collecting numpy==1.17.3
    Using cached numpy-1.17.3.zip (6.4 MB)
  Collecting packaging
    Using cached packaging-21.3-py3-none-any.whl (40 kB)
  Collecting distro
    Using cached distro-1.7.0-py3-none-any.whl (20 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: Command errored out with exit status 1:
     command: /opt/homebrew/Caskroom/miniforge/base/envs/myenv/bin/python3.8 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-1a7rqk40/numpy_956d1ad39dbc4abcafb188e491a762c4/setup.py'"'"'; __file__='"'"'/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-1a7rqk40/numpy_956d1ad39dbc4abcafb188e491a762c4/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-wheel-l3pgchg4
         cwd: /private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-1a7rqk40/numpy_956d1ad39dbc4abcafb188e491a762c4/
    Complete output (246 lines):
    Running from numpy source directory.
    blas_opt_info:
    blas_mkl_info:
    customize UnixCCompiler
      libraries mkl_rt not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
  
    blis_info:
    customize UnixCCompiler
      libraries blis not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
  
    openblas_info:
    customize UnixCCompiler
    customize UnixCCompiler
      libraries openblas not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
  
    atlas_3_10_blas_threads_info:
    Setting PTATLAS=ATLAS
    customize UnixCCompiler
      libraries tatlas not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
  
    atlas_3_10_blas_info:
    customize UnixCCompiler
      libraries satlas not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
  
    atlas_blas_threads_info:
    Setting PTATLAS=ATLAS
    customize UnixCCompiler
      libraries ptf77blas,ptcblas,atlas not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
  
    atlas_blas_info:
    customize UnixCCompiler
      libraries f77blas,cblas,atlas not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
  
    accelerate_info:
    customize UnixCCompiler
      libraries accelerate not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
    Library accelerate was not found. Ignoring
    customize UnixCCompiler
      libraries veclib not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
    Library veclib was not found. Ignoring
      FOUND:
        extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers']
        extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
        define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]
  
      FOUND:
        extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers']
        extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
        define_macros = [('NO_ATLAS_INFO', 3), ('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 ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
  
    openblas_lapack_info:
    customize UnixCCompiler
    customize UnixCCompiler
      libraries openblas not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
  
    openblas_clapack_info:
    customize UnixCCompiler
    customize UnixCCompiler
      libraries openblas,lapack not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
  
    flame_info:
    customize UnixCCompiler
      libraries flame not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
  
    atlas_3_10_threads_info:
    Setting PTATLAS=ATLAS
    customize UnixCCompiler
      libraries lapack_atlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib
    customize UnixCCompiler
      libraries tatlas,tatlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib
    customize UnixCCompiler
      libraries lapack_atlas not found in /usr/local/lib
    customize UnixCCompiler
      libraries tatlas,tatlas not found in /usr/local/lib
    customize UnixCCompiler
      libraries lapack_atlas not found in /usr/lib
    customize UnixCCompiler
      libraries tatlas,tatlas not found in /usr/lib
    <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
      NOT AVAILABLE
  
    atlas_3_10_info:
    customize UnixCCompiler
      libraries lapack_atlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib
    customize UnixCCompiler
      libraries satlas,satlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib
    customize UnixCCompiler
      libraries lapack_atlas not found in /usr/local/lib
    customize UnixCCompiler
      libraries satlas,satlas not found in /usr/local/lib
    customize UnixCCompiler
      libraries lapack_atlas not found in /usr/lib
    customize UnixCCompiler
      libraries satlas,satlas not found in /usr/lib
    <class 'numpy.distutils.system_info.atlas_3_10_info'>
      NOT AVAILABLE
  
    atlas_threads_info:
    Setting PTATLAS=ATLAS
    customize UnixCCompiler
      libraries lapack_atlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib
    customize UnixCCompiler
      libraries ptf77blas,ptcblas,atlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib
    customize UnixCCompiler
      libraries lapack_atlas not found in /usr/local/lib
    customize UnixCCompiler
      libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
    customize UnixCCompiler
      libraries lapack_atlas not found in /usr/lib
    customize UnixCCompiler
      libraries ptf77blas,ptcblas,atlas not found in /usr/lib
    <class 'numpy.distutils.system_info.atlas_threads_info'>
      NOT AVAILABLE
  
    atlas_info:
    customize UnixCCompiler
      libraries lapack_atlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib
    customize UnixCCompiler
      libraries f77blas,cblas,atlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib
    customize UnixCCompiler
      libraries lapack_atlas not found in /usr/local/lib
    customize UnixCCompiler
      libraries f77blas,cblas,atlas not found in /usr/local/lib
    customize UnixCCompiler
      libraries lapack_atlas not found in /usr/lib
    customize UnixCCompiler
      libraries f77blas,cblas,atlas not found in /usr/lib
    <class 'numpy.distutils.system_info.atlas_info'>
      NOT AVAILABLE
  
      FOUND:
        extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers']
        extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
        define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]
  
    /opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib/python3.8/site-packages/setuptools/_distutils/dist.py:275: UserWarning: Unknown distribution option: 'define_macros'
      warnings.warn(msg)
    running bdist_wheel
    running build
    running config_cc
    unifing config_cc, config, build_clib, build_ext, build commands --compiler options
    running config_fc
    unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
    running build_src
    build_src
    building py_modules sources
    creating build
    creating build/src.macosx-11.0-arm64-3.8
    creating build/src.macosx-11.0-arm64-3.8/numpy
    creating build/src.macosx-11.0-arm64-3.8/numpy/distutils
    building library "npymath" sources
    get_default_fcompiler: matching types: '['gnu95', 'nag', 'absoft', 'ibm', 'intel', 'gnu', 'g95', 'pg']'
    customize Gnu95FCompiler
    Could not locate executable gfortran
    Could not locate executable f95
    customize NAGFCompiler
    customize AbsoftFCompiler
    Could not locate executable f90
    Could not locate executable f77
    customize IBMFCompiler
    Could not locate executable xlf90
    Could not locate executable xlf
    customize IntelFCompiler
    Could not locate executable ifort
    Could not locate executable ifc
    customize GnuFCompiler
    Could not locate executable g77
    customize G95FCompiler
    Could not locate executable g95
    customize PGroupFCompiler
    Could not locate executable pgfortran
    don't know how to compile Fortran code on platform 'posix'
    C compiler: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/homebrew/Caskroom/miniforge/base/envs/myenv/include -arch arm64 -fPIC -O2 -isystem /opt/homebrew/Caskroom/miniforge/base/envs/myenv/include -arch arm64
  
    compile options: '-Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/opt/homebrew/Caskroom/miniforge/base/envs/myenv/include/python3.8 -c'
    clang: _configtest.c
    xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
    failure.
    removing: _configtest.c _configtest.o
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-1a7rqk40/numpy_956d1ad39dbc4abcafb188e491a762c4/setup.py", line 443, in <module>
        setup_package()
      File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-1a7rqk40/numpy_956d1ad39dbc4abcafb188e491a762c4/setup.py", line 435, in setup_package
        setup(**metadata)
      File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-1a7rqk40/numpy_956d1ad39dbc4abcafb188e491a762c4/numpy/distutils/core.py", line 171, in setup
        return old_setup(**new_attr)
      File "/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib/python3.8/site-packages/setuptools/__init__.py", line 87, in setup
        return distutils.core.setup(**attrs)
      File "/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 148, in setup
        return run_commands(dist)
      File "/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 163, in run_commands
        dist.run_commands()
      File "/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 967, in run_commands
        self.run_command(cmd)
      File "/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib/python3.8/site-packages/setuptools/dist.py", line 1214, in run_command
        super().run_command(command)
      File "/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
        cmd_obj.run()
      File "/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 290, in run
        self.run_command('build')
      File "/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib/python3.8/site-packages/setuptools/dist.py", line 1214, in run_command
        super().run_command(command)
      File "/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
        cmd_obj.run()
      File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-1a7rqk40/numpy_956d1ad39dbc4abcafb188e491a762c4/numpy/distutils/command/build.py", line 47, in run
        old_build.run(self)
      File "/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib/python3.8/site-packages/setuptools/_distutils/command/build.py", line 135, in run
        self.run_command(cmd_name)
      File "/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib/python3.8/site-packages/setuptools/dist.py", line 1214, in run_command
        super().run_command(command)
      File "/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
        cmd_obj.run()
      File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-1a7rqk40/numpy_956d1ad39dbc4abcafb188e491a762c4/numpy/distutils/command/build_src.py", line 142, in run
        self.build_sources()
      File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-1a7rqk40/numpy_956d1ad39dbc4abcafb188e491a762c4/numpy/distutils/command/build_src.py", line 153, in build_sources
        self.build_library_sources(*libname_info)
      File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-1a7rqk40/numpy_956d1ad39dbc4abcafb188e491a762c4/numpy/distutils/command/build_src.py", line 286, in build_library_sources
        sources = self.generate_sources(sources, (lib_name, build_info))
      File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-1a7rqk40/numpy_956d1ad39dbc4abcafb188e491a762c4/numpy/distutils/command/build_src.py", line 369, in generate_sources
        source = func(extension, build_dir)
      File "numpy/core/setup.py", line 669, in get_mathlib_info
        raise RuntimeError("Broken toolchain: cannot link a simple C program")
    RuntimeError: Broken toolchain: cannot link a simple C program
    ----------------------------------------
    ERROR: Failed building wheel for numpy
    Running setup.py clean for numpy
    ERROR: Command errored out with exit status 1:
     command: /opt/homebrew/Caskroom/miniforge/base/envs/myenv/bin/python3.8 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-1a7rqk40/numpy_956d1ad39dbc4abcafb188e491a762c4/setup.py'"'"'; __file__='"'"'/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-1a7rqk40/numpy_956d1ad39dbc4abcafb188e491a762c4/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' clean --all
         cwd: /private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-1a7rqk40/numpy_956d1ad39dbc4abcafb188e491a762c4
    Complete output (10 lines):
    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).
  
    ----------------------------------------
    ERROR: Failed cleaning build dir for numpy
  Failed to build numpy
  Installing collected packages: pyparsing, wheel, setuptools, packaging, distro, scikit-build, pip, numpy, cmake
      Running setup.py install for numpy: started
      Running setup.py install for numpy: finished with status 'error'
      ERROR: Command errored out with exit status 1:
       command: /opt/homebrew/Caskroom/miniforge/base/envs/myenv/bin/python3.8 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-1a7rqk40/numpy_956d1ad39dbc4abcafb188e491a762c4/setup.py'"'"'; __file__='"'"'/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-1a7rqk40/numpy_956d1ad39dbc4abcafb188e491a762c4/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-record-i49pu6oq/install-record.txt --single-version-externally-managed --prefix /private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-build-env-qer7y029/overlay --compile --install-headers /private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-build-env-qer7y029/overlay/include/python3.8/numpy
           cwd: /private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-1a7rqk40/numpy_956d1ad39dbc4abcafb188e491a762c4/
      Complete output (257 lines):
      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 ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
        NOT AVAILABLE
  
      blis_info:
      customize UnixCCompiler
        libraries blis not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
        NOT AVAILABLE
  
      openblas_info:
      customize UnixCCompiler
      customize UnixCCompiler
        libraries openblas not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
        NOT AVAILABLE
  
      atlas_3_10_blas_threads_info:
      Setting PTATLAS=ATLAS
      customize UnixCCompiler
        libraries tatlas not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
        NOT AVAILABLE
  
      atlas_3_10_blas_info:
      customize UnixCCompiler
        libraries satlas not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
        NOT AVAILABLE
  
      atlas_blas_threads_info:
      Setting PTATLAS=ATLAS
      customize UnixCCompiler
        libraries ptf77blas,ptcblas,atlas not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
        NOT AVAILABLE
  
      atlas_blas_info:
      customize UnixCCompiler
        libraries f77blas,cblas,atlas not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
        NOT AVAILABLE
  
      accelerate_info:
      customize UnixCCompiler
        libraries accelerate not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
      Library accelerate was not found. Ignoring
      customize UnixCCompiler
        libraries veclib not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
      Library veclib was not found. Ignoring
        FOUND:
          extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers']
          extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
          define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]
  
        FOUND:
          extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers']
          extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
          define_macros = [('NO_ATLAS_INFO', 3), ('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 ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
        NOT AVAILABLE
  
      openblas_lapack_info:
      customize UnixCCompiler
      customize UnixCCompiler
        libraries openblas not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
        NOT AVAILABLE
  
      openblas_clapack_info:
      customize UnixCCompiler
      customize UnixCCompiler
        libraries openblas,lapack not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
        NOT AVAILABLE
  
      flame_info:
      customize UnixCCompiler
        libraries flame not found in ['/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib', '/usr/local/lib', '/usr/lib']
        NOT AVAILABLE
  
      atlas_3_10_threads_info:
      Setting PTATLAS=ATLAS
      customize UnixCCompiler
        libraries lapack_atlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib
      customize UnixCCompiler
        libraries tatlas,tatlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib
      customize UnixCCompiler
        libraries lapack_atlas not found in /usr/local/lib
      customize UnixCCompiler
        libraries tatlas,tatlas not found in /usr/local/lib
      customize UnixCCompiler
        libraries lapack_atlas not found in /usr/lib
      customize UnixCCompiler
        libraries tatlas,tatlas not found in /usr/lib
      <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
        NOT AVAILABLE
  
      atlas_3_10_info:
      customize UnixCCompiler
        libraries lapack_atlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib
      customize UnixCCompiler
        libraries satlas,satlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib
      customize UnixCCompiler
        libraries lapack_atlas not found in /usr/local/lib
      customize UnixCCompiler
        libraries satlas,satlas not found in /usr/local/lib
      customize UnixCCompiler
        libraries lapack_atlas not found in /usr/lib
      customize UnixCCompiler
        libraries satlas,satlas not found in /usr/lib
      <class 'numpy.distutils.system_info.atlas_3_10_info'>
        NOT AVAILABLE
  
      atlas_threads_info:
      Setting PTATLAS=ATLAS
      customize UnixCCompiler
        libraries lapack_atlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib
      customize UnixCCompiler
        libraries ptf77blas,ptcblas,atlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib
      customize UnixCCompiler
        libraries lapack_atlas not found in /usr/local/lib
      customize UnixCCompiler
        libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
      customize UnixCCompiler
        libraries lapack_atlas not found in /usr/lib
      customize UnixCCompiler
        libraries ptf77blas,ptcblas,atlas not found in /usr/lib
      <class 'numpy.distutils.system_info.atlas_threads_info'>
        NOT AVAILABLE
  
      atlas_info:
      customize UnixCCompiler
        libraries lapack_atlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib
      customize UnixCCompiler
        libraries f77blas,cblas,atlas not found in /opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib
      customize UnixCCompiler
        libraries lapack_atlas not found in /usr/local/lib
      customize UnixCCompiler
        libraries f77blas,cblas,atlas not found in /usr/local/lib
      customize UnixCCompiler
        libraries lapack_atlas not found in /usr/lib
      customize UnixCCompiler
        libraries f77blas,cblas,atlas not found in /usr/lib
      <class 'numpy.distutils.system_info.atlas_info'>
        NOT AVAILABLE
  
        FOUND:
          extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers']
          extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
          define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]
  
      /opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib/python3.8/site-packages/setuptools/_distutils/dist.py:275: UserWarning: Unknown distribution option: 'define_macros'
        warnings.warn(msg)
      running install
      /opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running config_cc
      unifing config_cc, config, build_clib, build_ext, build commands --compiler options
      running config_fc
      unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
      running build_src
      build_src
      building py_modules sources
      building library "npymath" sources
      get_default_fcompiler: matching types: '['gnu95', 'nag', 'absoft', 'ibm', 'intel', 'gnu', 'g95', 'pg']'
      customize Gnu95FCompiler
      Could not locate executable gfortran
      Could not locate executable f95
      customize NAGFCompiler
      customize AbsoftFCompiler
      Could not locate executable f90
      Could not locate executable f77
      customize IBMFCompiler
      Could not locate executable xlf90
      Could not locate executable xlf
      customize IntelFCompiler
      Could not locate executable ifort
      Could not locate executable ifc
      customize GnuFCompiler
      Could not locate executable g77
      customize G95FCompiler
      Could not locate executable g95
      customize PGroupFCompiler
      Could not locate executable pgfortran
      don't know how to compile Fortran code on platform 'posix'
      C compiler: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/homebrew/Caskroom/miniforge/base/envs/myenv/include -arch arm64 -fPIC -O2 -isystem /opt/homebrew/Caskroom/miniforge/base/envs/myenv/include -arch arm64
  
      compile options: '-Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/opt/homebrew/Caskroom/miniforge/base/envs/myenv/include/python3.8 -c'
      clang: _configtest.c
      xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
      failure.
      removing: _configtest.c _configtest.o
      Traceback (most recent call last):
        File "<string>", line 1, in <module>
        File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-1a7rqk40/numpy_956d1ad39dbc4abcafb188e491a762c4/setup.py", line 443, in <module>
          setup_package()
        File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-1a7rqk40/numpy_956d1ad39dbc4abcafb188e491a762c4/setup.py", line 435, in setup_package
          setup(**metadata)
        File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-1a7rqk40/numpy_956d1ad39dbc4abcafb188e491a762c4/numpy/distutils/core.py", line 171, in setup
          return old_setup(**new_attr)
        File "/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib/python3.8/site-packages/setuptools/__init__.py", line 87, in setup
          return distutils.core.setup(**attrs)
        File "/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 148, in setup
          return run_commands(dist)
        File "/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 163, in run_commands
          dist.run_commands()
        File "/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 967, in run_commands
          self.run_command(cmd)
        File "/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib/python3.8/site-packages/setuptools/dist.py", line 1214, in run_command
          super().run_command(command)
        File "/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
          cmd_obj.run()
        File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-1a7rqk40/numpy_956d1ad39dbc4abcafb188e491a762c4/numpy/distutils/command/install.py", line 62, in run
          r = self.setuptools_run()
        File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-1a7rqk40/numpy_956d1ad39dbc4abcafb188e491a762c4/numpy/distutils/command/install.py", line 36, in setuptools_run
          return distutils_install.run(self)
        File "/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib/python3.8/site-packages/setuptools/_distutils/command/install.py", line 664, in run
          self.run_command('build')
        File "/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
          self.distribution.run_command(command)
        File "/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib/python3.8/site-packages/setuptools/dist.py", line 1214, in run_command
          super().run_command(command)
        File "/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
          cmd_obj.run()
        File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-1a7rqk40/numpy_956d1ad39dbc4abcafb188e491a762c4/numpy/distutils/command/build.py", line 47, in run
          old_build.run(self)
        File "/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib/python3.8/site-packages/setuptools/_distutils/command/build.py", line 135, in run
          self.run_command(cmd_name)
        File "/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
          self.distribution.run_command(command)
        File "/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib/python3.8/site-packages/setuptools/dist.py", line 1214, in run_command
          super().run_command(command)
        File "/opt/homebrew/Caskroom/miniforge/base/envs/myenv/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
          cmd_obj.run()
        File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-1a7rqk40/numpy_956d1ad39dbc4abcafb188e491a762c4/numpy/distutils/command/build_src.py", line 142, in run
          self.build_sources()
        File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-1a7rqk40/numpy_956d1ad39dbc4abcafb188e491a762c4/numpy/distutils/command/build_src.py", line 153, in build_sources
          self.build_library_sources(*libname_info)
        File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-1a7rqk40/numpy_956d1ad39dbc4abcafb188e491a762c4/numpy/distutils/command/build_src.py", line 286, in build_library_sources
          sources = self.generate_sources(sources, (lib_name, build_info))
        File "/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-1a7rqk40/numpy_956d1ad39dbc4abcafb188e491a762c4/numpy/distutils/command/build_src.py", line 369, in generate_sources
          source = func(extension, build_dir)
        File "numpy/core/setup.py", line 669, in get_mathlib_info
          raise RuntimeError("Broken toolchain: cannot link a simple C program")
      RuntimeError: Broken toolchain: cannot link a simple C program
      ----------------------------------------
  ERROR: Command errored out with exit status 1: /opt/homebrew/Caskroom/miniforge/base/envs/myenv/bin/python3.8 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-1a7rqk40/numpy_956d1ad39dbc4abcafb188e491a762c4/setup.py'"'"'; __file__='"'"'/private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-install-1a7rqk40/numpy_956d1ad39dbc4abcafb188e491a762c4/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-record-i49pu6oq/install-record.txt --single-version-externally-managed --prefix /private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-build-env-qer7y029/overlay --compile --install-headers /private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-build-env-qer7y029/overlay/include/python3.8/numpy Check the logs for full command output.
  ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/bb/08/9dbc183a3ac6baa95fabf749ddb531bd26256edfff5b6c2195eca26258e9/opencv-python-4.5.1.48.tar.gz#sha256=78a6db8467639383caedf1d111da3510a4ee1a0aacf2117821cae2ee8f92ce37 (from https://pypi.org/simple/opencv-python/) (requires-python:>=3.6). Command errored out with exit status 1: /opt/homebrew/Caskroom/miniforge/base/envs/myenv/bin/python3.8 /private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-standalone-pip-_nqftlxx/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /private/var/folders/0p/_22pc9kx0hgdp1cfhy9g74b80000gn/T/pip-build-env-qer7y029/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel scikit-build cmake pip 'numpy==1.13.3; python_version=='"'"'3.6'"'"' and platform_machine != '"'"'aarch64'"'"'' 'numpy==1.19.3; python_version>='"'"'3.6'"'"' and sys_platform == '"'"'linux'"'"' and platform_machine == '"'"'aarch64'"'"'' 'numpy==1.14.5; python_version=='"'"'3.7'"'"' and platform_machine != '"'"'aarch64'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"' and platform_machine != '"'"'aarch64'"'"'' 'numpy==1.19.3; python_version>='"'"'3.9'"'"' and platform_machine != '"'"'aarch64'"'"'' Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement opencv-python==4.5.1.48 (from versions: 3.4.0.14, 3.4.10.37, 3.4.11.39, 3.4.11.41, 3.4.11.43, 3.4.11.45, 3.4.13.47, 3.4.15.55, 3.4.16.57, 3.4.16.59, 3.4.17.61, 3.4.17.63, 3.4.18.65, 4.3.0.38, 4.4.0.40, 4.4.0.42, 4.4.0.44, 4.4.0.46, 4.5.1.48, 4.5.3.56, 4.5.4.58, 4.5.4.60, 4.5.5.62, 4.5.5.64, 4.6.0.66)
ERROR: No matching distribution found for opencv-python==4.5.1.48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment