Numpy is not installing

Answered

Hello,

struggling with installation Numpy and Pandas.

Python 3.8 virtual environment

I was trying pep install PEP517, the fault is the same.

Collecting numpy
Using cached numpy-1.21.2.zip (10.3 MB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'done'
Building wheels for collected packages: numpy
Building wheel for numpy (PEP 517): started
Building wheel for numpy (PEP 517): finished with status 'error'
Failed to build numpy

ERROR: Command errored out with exit status 1:
command: 'C:\Users\i.talitskikh\PycharmProjects\pythonProject\venv\bin\python.exe' 'C:\Users\i.talitskikh\PycharmProjects\pythonProject\venv\lib\python3.8\site-packages\pip\_vendor\pep517\in_process\_in_process.py' build_wheel 'C:\Users\I2F0E~1.TAL\AppData\Local\Temp\tmpbq6sbik0'
cwd: C:\Users\i.talitskikh\AppData\Local\Temp\pip-install-mucfpsls\numpy_9f3e46147fb44663bb1405c554976610
Complete output (86 lines):
Running from numpy source directory.
Cythonizing sources
Processing numpy/random\_bounded_integers.pxd.in
Processing numpy/random\bit_generator.pyx
Processing numpy/random\mtrand.pyx
Processing numpy/random\_bounded_integers.pyx.in
Processing numpy/random\_common.pyx
Processing numpy/random\_generator.pyx
Processing numpy/random\_mt19937.pyx
Processing numpy/random\_pcg64.pyx
Processing numpy/random\_philox.pyx
Processing numpy/random\_sfc64.pyx
blas_opt_info:
blas_mkl_info:
Der Befehl "gcc" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
Traceback (most recent call last):
File "C:\Users\i.talitskikh\PycharmProjects\pythonProject\venv\lib\python3.8\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 349, in <module>
main()
File "C:\Users\i.talitskikh\PycharmProjects\pythonProject\venv\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 "C:\Users\i.talitskikh\PycharmProjects\pythonProject\venv\lib\python3.8\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 248, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
File "C:\Users\i.talitskikh\AppData\Local\Temp\pip-build-env-udcbaw69\overlay\lib\python3.8\site-packages\setuptools\build_meta.py", line 211, in build_wheel
return self._build_with_temp_dir(['bdist_wheel'], '.whl',
File "C:\Users\i.talitskikh\AppData\Local\Temp\pip-build-env-udcbaw69\overlay\lib\python3.8\site-packages\setuptools\build_meta.py", line 197, in _build_with_temp_dir
self.run_setup()
File "C:\Users\i.talitskikh\AppData\Local\Temp\pip-build-env-udcbaw69\overlay\lib\python3.8\site-packages\setuptools\build_meta.py", line 248, in run_setup
super(_BuildMetaLegacyBackend,
File "C:\Users\i.talitskikh\AppData\Local\Temp\pip-build-env-udcbaw69\overlay\lib\python3.8\site-packages\setuptools\build_meta.py", line 142, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 448, in <module>
setup_package()
File "setup.py", line 440, in setup_package
setup(**metadata)
File "C:\Users\i.talitskikh\AppData\Local\Temp\pip-install-mucfpsls\numpy_9f3e46147fb44663bb1405c554976610\numpy\distutils\core.py", line 135, in setup
config = configuration()
File "setup.py", line 118, in configuration
config.add_subpackage('numpy')
File "C:\Users\i.talitskikh\AppData\Local\Temp\pip-install-mucfpsls\numpy_9f3e46147fb44663bb1405c554976610\numpy\distutils\misc_util.py", line 1016, in add_subpackage
config_list = self.get_subpackage(subpackage_name, subpackage_path,
File "C:\Users\i.talitskikh\AppData\Local\Temp\pip-install-mucfpsls\numpy_9f3e46147fb44663bb1405c554976610\numpy\distutils\misc_util.py", line 982, in get_subpackage
config = self._get_configuration_from_setup_py(
File "C:\Users\i.talitskikh\AppData\Local\Temp\pip-install-mucfpsls\numpy_9f3e46147fb44663bb1405c554976610\numpy\distutils\misc_util.py", line 924, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "numpy\setup.py", line 8, in configuration
config.add_subpackage('core')
File "C:\Users\i.talitskikh\AppData\Local\Temp\pip-install-mucfpsls\numpy_9f3e46147fb44663bb1405c554976610\numpy\distutils\misc_util.py", line 1016, in add_subpackage
config_list = self.get_subpackage(subpackage_name, subpackage_path,
File "C:\Users\i.talitskikh\AppData\Local\Temp\pip-install-mucfpsls\numpy_9f3e46147fb44663bb1405c554976610\numpy\distutils\misc_util.py", line 982, in get_subpackage
config = self._get_configuration_from_setup_py(
File "C:\Users\i.talitskikh\AppData\Local\Temp\pip-install-mucfpsls\numpy_9f3e46147fb44663bb1405c554976610\numpy\distutils\misc_util.py", line 924, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "numpy\core\setup.py", line 751, in configuration
blas_info = get_info('blas_opt', 0)
File "C:\Users\i.talitskikh\AppData\Local\Temp\pip-install-mucfpsls\numpy_9f3e46147fb44663bb1405c554976610\numpy\distutils\system_info.py", line 581, in get_info
return cl().get_info(notfound_action)
File "C:\Users\i.talitskikh\AppData\Local\Temp\pip-install-mucfpsls\numpy_9f3e46147fb44663bb1405c554976610\numpy\distutils\system_info.py", line 841, in get_info
self.calc_info()
File "C:\Users\i.talitskikh\AppData\Local\Temp\pip-install-mucfpsls\numpy_9f3e46147fb44663bb1405c554976610\numpy\distutils\system_info.py", line 2026, in calc_info
if self._calc_info(blas):
File "C:\Users\i.talitskikh\AppData\Local\Temp\pip-install-mucfpsls\numpy_9f3e46147fb44663bb1405c554976610\numpy\distutils\system_info.py", line 2012, in _calc_info
return getattr(self, '_calc_info_{}'.format(name))()
File "C:\Users\i.talitskikh\AppData\Local\Temp\pip-install-mucfpsls\numpy_9f3e46147fb44663bb1405c554976610\numpy\distutils\system_info.py", line 1935, in _calc_info_mkl
info = get_info('blas_mkl')
File "C:\Users\i.talitskikh\AppData\Local\Temp\pip-install-mucfpsls\numpy_9f3e46147fb44663bb1405c554976610\numpy\distutils\system_info.py", line 581, in get_info
return cl().get_info(notfound_action)
File "C:\Users\i.talitskikh\AppData\Local\Temp\pip-install-mucfpsls\numpy_9f3e46147fb44663bb1405c554976610\numpy\distutils\system_info.py", line 841, in get_info
self.calc_info()
File "C:\Users\i.talitskikh\AppData\Local\Temp\pip-install-mucfpsls\numpy_9f3e46147fb44663bb1405c554976610\numpy\distutils\system_info.py", line 1292, in calc_info
info = self.check_libs2(lib_dirs, mkl_libs)
File "C:\Users\i.talitskikh\AppData\Local\Temp\pip-install-mucfpsls\numpy_9f3e46147fb44663bb1405c554976610\numpy\distutils\system_info.py", line 997, in check_libs2
exts = self.library_extensions()
File "C:\Users\i.talitskikh\AppData\Local\Temp\pip-install-mucfpsls\numpy_9f3e46147fb44663bb1405c554976610\numpy\distutils\system_info.py", line 956, in library_extensions
c = customized_ccompiler()
File "C:\Users\i.talitskikh\AppData\Local\Temp\pip-install-mucfpsls\numpy_9f3e46147fb44663bb1405c554976610\numpy\distutils\system_info.py", line 216, in customized_ccompiler
global_compiler = _customized_ccompiler()
File "C:\Users\i.talitskikh\AppData\Local\Temp\pip-install-mucfpsls\numpy_9f3e46147fb44663bb1405c554976610\numpy\distutils\__init__.py", line 49, in customized_ccompiler
c = ccompiler.new_compiler(plat=plat, compiler=compiler, verbose=verbose)
File "C:\Users\i.talitskikh\AppData\Local\Temp\pip-install-mucfpsls\numpy_9f3e46147fb44663bb1405c554976610\numpy\distutils\ccompiler.py", line 761, in new_compiler
compiler = klass(None, dry_run, force)
File "C:\Users\i.talitskikh\AppData\Local\Temp\pip-install-mucfpsls\numpy_9f3e46147fb44663bb1405c554976610\numpy\distutils\mingw32ccompiler.py", line 62, in __init__
distutils.cygwinccompiler.CygwinCCompiler.__init__ (self, verbose,
File "C:\Program Files\Inkscape\lib\python3.8\distutils\cygwinccompiler.py", line 127, in __init__
if self.ld_version >= "2.10.90":
TypeError: '>=' not supported between instances of 'NoneType' and 'str'
----------------------------------------
ERROR: Failed building wheel for numpy
ERROR: Could not build wheels for numpy which use PEP 517 and cannot be installed directly

2 comments
Comment actions Permalink

even i'm facing the same error with version 3.10

0
Comment actions Permalink

The installation is performed by pip which is an external tool not developed by JetBrains. Most likely, the issue is related to your environment.

Make sure the version you are trying to install is compatible with the Python version you are using.

0

Please sign in to leave a comment.