when using pip install pandas
An error occurs as follows:
Collecting pandas
Using cached pandas-1.5.2.tar.gz (5.2 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [28 lines of output]
Traceback (most recent call last):
File "d:\py\lib\site-packages\pip_vendor\pep517\in_process_in_process.py", line 351, in
main()
File "d:\py\lib\site-packages\pip_vendor\pep517\in_process_in_process.py", line 333, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "d:\py\lib\site-packages\pip_vendor\pep517\in_process_in_process.py", line 112, in get_requires_for_build_wheel
backend = _build_backend()
File "d:\py\lib\site-packages\pip_vendor\pep517\in_process_in_process.py", line 77, in build_backend
obj = import_module(mod_path)
File "d:\py\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 972, in _find_and_load_unlocked
File "", line 228, in _call_with_frames_removed
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 790, in exec_module
File "", line 228, in call_with_frames_removed
File "C:\Users\zijie\AppData\Local\Temp\pip-build-env-kqsd82rz\overlay\Lib\site-packages\setuptools_init.py", line 18, in
from setuptools.dist import Distribution
File "C:\Users\zijie\AppData\Local\Temp\pip-build-env-kqsd82rz\overlay\Lib\site-packages\setuptools\dist.py", line 47, in
from . import _entry_points
File "C:\Users\zijie\AppData\Local\Temp\pip-build-env-kqsd82rz\overlay\Lib\site-packages\setuptools_entry_points.py", line 43, in
def validate(eps: metadata.EntryPoints):
AttributeError: module 'importlib.metadata' has no attribute 'EntryPoints'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel 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.
py:3.10.0
os:windows11
Does anyone know how to solve the problem? Thanks!
I tried several times but it doesn't work.
Have you tried:
pip3 install pandas?
Related
I tried installing the AioHttp package, as seen in the extract below. The installation failed with the multidict module.
root#ava:/home/cliquant/server/ava# pip3 install aiohttp
Collecting aiohttp
Using cached https://files.pythonhosted.org/packages/ff/4f/62d9859b7d4e6dc32feda67815c5f5ab4421e6909e48cbc970b6a40d60b7/aiohttp-3.8.3.tar.gz
Complete output from command python setup.py egg_info:
*********************
* Accelerated build *
*********************
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-0b29nbfp/aiohttp/setup.py", line 54, in <module>
setup(**setup_kwargs)
File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 129, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.6/distutils/core.py", line 121, in setup
dist.parse_config_files()
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 494, in parse_config_files
ignore_option_errors=ignore_option_errors)
File "/usr/lib/python3/dist-packages/setuptools/config.py", line 106, in parse_configuration
meta.parse()
File "/usr/lib/python3/dist-packages/setuptools/config.py", line 382, in parse
section_parser_method(section_options)
File "/usr/lib/python3/dist-packages/setuptools/config.py", line 355, in parse_section
self[name] = value
File "/usr/lib/python3/dist-packages/setuptools/config.py", line 173, in __setitem__
value = parser(value)
File "/usr/lib/python3/dist-packages/setuptools/config.py", line 430, in _parse_version
version = self._parse_attr(value)
File "/usr/lib/python3/dist-packages/setuptools/config.py", line 305, in _parse_attr
module = import_module(module_name)
File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/tmp/pip-build-0b29nbfp/aiohttp/aiohttp/__init__.py", line 5, in <module>
from . import hdrs as hdrs
File "/tmp/pip-build-0b29nbfp/aiohttp/aiohttp/hdrs.py", line 8, in <module>
from multidict import istr
ModuleNotFoundError: No module named 'multidict'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-0b29nbfp/aiohttp/`
I got error when installing aiohttp with pip3.
How can I fix this?
NB: I can't find in google about it...
Google came to your aid narrowing down on the ModuleNotFoundError: No module named 'multidict'
To resolve, install the multidict module.
python3 -m pip install multidict or
pip3 install multidict
See this GitHub issue #277, and
this SO question
[Edit] For completeness, ensure you are installing in the correct environment env.
Also, check the version(s) of python installed on the system.
This question already has an answer here:
msys2/mingw64: pip: VC 6.0 is not supported by this module
(1 answer)
Closed last month.
This is my 40 line error code
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [40 lines of output]
Traceback (most recent call last):
File "C:\msys64\mingw64\lib\python3.9\site-packages\pip_vendor\pep517\in_process_in_process.py", line 351, in
main()
File "C:\msys64\mingw64\lib\python3.9\site-packages\pip_vendor\pep517\in_process_in_process.py", line 333, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\msys64\mingw64\lib\python3.9\site-packages\pip_vendor\pep517\in_process_in_process.py", line 112, in get_requires_for_build_wheel
backend = _build_backend()
File "C:\msys64\mingw64\lib\python3.9\site-packages\pip_vendor\pep517\in_process_in_process.py", line 77, in build_backend
obj = import_module(mod_path)
File "C:\msys64\mingw64\lib\python3.9\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 972, in _find_and_load_unlocked
File "", line 228, in _call_with_frames_removed
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in load_unlocked
File "", line 850, in exec_module
File "", line 228, in call_with_frames_removed
File "C:\Users\abhij\AppData\Local\Temp\pip-build-env-g0qzuyap\overlay\lib\python3.9\site-packages\setuptools_init.py", line 242, in
monkey.patch_all()
File "C:\Users\abhij\AppData\Local\Temp\pip-build-env-g0qzuyap\overlay\lib\python3.9\site-packages\setuptools\monkey.py", line 99, in patch_all
patch_for_msvc_specialized_compiler()
File "C:\Users\abhij\AppData\Local\Temp\pip-build-env-g0qzuyap\overlay\lib\python3.9\site-packages\setuptools\monkey.py", line 162, in patch_for_msvc_specialized_compiler
patch_func(*msvc9('find_vcvarsall'))
File "C:\Users\abhij\AppData\Local\Temp\pip-build-env-g0qzuyap\overlay\lib\python3.9\site-packages\setuptools\monkey.py", line 149, in patch_params
mod = import_module(mod_name)
File "C:\msys64\mingw64\lib\python3.9\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "C:\Users\abhij\AppData\Local\Temp\pip-build-env-g0qzuyap\overlay\lib\python3.9\site-packages\setuptools_distutils\msvc9compiler.py", line 295, in
raise DistutilsPlatformError("VC %0.1f is not supported by this module" % VERSION)
distutils.errors.DistutilsPlatformError: VC 6.0 is not supported by this module
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel 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.
I tried looking online and usually similar errors have missing files or packages so now I'm just expecting to know what's wrong with my pip installation and what fix I can get since when I try to import in IDLE after this it doesn't work
try this
pip install numpy
or
conda install numpy
it works with WIN/MAC/Linux
try to reload or change interpreter
and if nothing will work specify your question more precisely
I'm trying to configure an interpreter and install packages, but I get this error. I have previously installed and used Pycharm Community without any problems.
I tried to install via cmd and updated pip to the latest version. I tried to used the base interpreter and also create a new one.
Do anyone now an answer to this?
Collecting pandas
Using cached pandas-1.5.2.tar.gz (5.2 MB)
Installing build dependencies: started
Installing build dependencies: finished with status 'error'
error: subprocess-exited-with-error
pip subprocess to install build dependencies did not run successfully.
exit code: 1
[71 lines of output]
Collecting setuptools>=51.0.0
Using cached setuptools-65.6.3-py3-none-any.whl (1.2 MB)
Collecting wheel
Using cached wheel-0.38.4-py3-none-any.whl (36 kB)
Collecting Cython<3,>=0.29.32
Using cached Cython-0.29.32-py2.py3-none-any.whl (986 kB)
Collecting oldest-supported-numpy>=2022.8.16
Using cached oldest_supported_numpy-2022.11.19-py3-none-any.whl (4.9 kB)
Collecting numpy==1.21.6
Using cached numpy-1.21.6.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 'error'
error: subprocess-exited-with-error
Getting requirements to build wheel did not run successfully.
exit code: 1
[40 lines of output]
Traceback (most recent call last):
File "C:\Users\Wiltsu\venv\lib\python3.10\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 351, in <module>
main()
File "C:\Users\Wiltsu\venv\lib\python3.10\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 333, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\Users\Wiltsu\venv\lib\python3.10\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 112, in get_requires_for_build_wheel
backend = _build_backend()
File "C:\Users\Wiltsu\venv\lib\python3.10\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 77, in _build_backend
obj = import_module(mod_path)
File "C:\msys64\mingw64\lib\python3.10\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 887, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "C:\Users\Wiltsu\AppData\Local\Temp\pip-build-env-0ws0et5_\overlay\lib\python3.10\site-packages\setuptools\__init__.py", line 242, in <module>
monkey.patch_all()
File "C:\Users\Wiltsu\AppData\Local\Temp\pip-build-env-0ws0et5_\overlay\lib\python3.10\site-packages\setuptools\monkey.py", line 99, in patch_all
patch_for_msvc_specialized_compiler()
File "C:\Users\Wiltsu\AppData\Local\Temp\pip-build-env-0ws0et5_\overlay\lib\python3.10\site-packages\setuptools\monkey.py", line 162, in patch_for_msvc_specialized_compiler
patch_func(*msvc9('find_vcvarsall'))
File "C:\Users\Wiltsu\AppData\Local\Temp\pip-build-env-0ws0et5_\overlay\lib\python3.10\site-packages\setuptools\monkey.py", line 149, in patch_params
mod = import_module(mod_name)
File "C:\msys64\mingw64\lib\python3.10\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 887, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "C:\Users\Wiltsu\AppData\Local\Temp\pip-build-env-0ws0et5_\overlay\lib\python3.10\site-packages\setuptools\_distutils\msvc9compiler.py", line 295, in <module>
raise DistutilsPlatformError("VC %0.1f is not supported by this module" % VERSION)
distutils.errors.DistutilsPlatformError: VC 6.0 is not supported by this module
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
Getting requirements to build wheel 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.
[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.
This question already has an answer here:
Unable to install logging module (Python)
(1 answer)
Closed 11 months ago.
I got this error while using 'pip install logging':
> pip install logging
Collecting logging
Using cached logging-0.4.9.6.tar.gz (96 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [32 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 14, in <module>
File "c:\users\asr\pycharmprojects\groupmanagerbot\venv\lib\site-packages\setuptools\__init__.py", line 18, in <module>
from setuptools.dist import Distribution
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "c:\users\asr\pycharmprojects\groupmanagerbot\venv\lib\site-packages\_virtualenv.py", line 89, in exec_module
old(module)
File "c:\users\asr\pycharmprojects\groupmanagerbot\venv\lib\site-packages\setuptools\dist.py", line 32, in <module>
from setuptools.extern.more_itertools import unique_everseen
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 674, in _load_unlocked
File "<frozen importlib._bootstrap>", line 571, in module_from_spec
File "c:\users\asr\pycharmprojects\groupmanagerbot\venv\lib\site-packages\setuptools\extern\__init__.py", line 52, in create_module
return self.load_module(spec.name)
File "c:\users\asr\pycharmprojects\groupmanagerbot\venv\lib\site-packages\setuptools\extern\__init__.py", line 37, in load_module
__import__(extant)
File "c:\users\asr\pycharmprojects\groupmanagerbot\venv\lib\site-packages\setuptools\_vendor\more_itertools\__init__.py", line 1, in <module>
from .more import * # noqa
File "c:\users\asr\pycharmprojects\groupmanagerbot\venv\lib\site-packages\setuptools\_vendor\more_itertools\more.py", line 5, in <module>
from concurrent.futures import ThreadPoolExecutor
File "C:\Users\Asr\AppData\Local\Programs\Python\Python310\lib\concurrent\futures\__init__.py", line 8, in <module>
from concurrent.futures._base import (FIRST_COMPLETED,
File "C:\Users\Asr\AppData\Local\Programs\Python\Python310\lib\concurrent\futures\_base.py", line 7, in <module>
import logging
File "C:\Users\Asr\AppData\Local\Temp\pip-install-e8vt44bg\logging_ae969009ecd74e96b07ddaa395b71854\logging\__init__.py", line 618
raise NotImplementedError, 'emit must be implemented '\
^
SyntaxError: invalid syntax
[end of output]
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
You don't need to pip install logging - the logging package is now part of the Python standard library. The logging package on pip is old and hasn't been used or updated for many years.
I can run the project on my local MAC, but when I use the pipeline to build it. I got this error:
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-axjgd0da/MarkupSafe/
This project is working well, and I did not update any new lib in it. Even I redeployed to the old branch, it has the same error.
Here are the build logs:
Collecting MarkupSafe==2.1.0 (from -r /usr/src/app/requirements.txt (line 1))
Downloading https://files.pythonhosted.org/packages/62/0f/52c009332fdadd484e898dc8f2acca0663c1031b3517070fd34ad9c1b64e/MarkupSafe-2.1.0.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-axjgd0da/MarkupSafe/setup.py", line 65, in <module>
run_setup(True)
File "/tmp/pip-build-axjgd0da/MarkupSafe/setup.py", line 44, in run_setup
ext_modules=ext_modules if with_binary else [],
File "/usr/lib/python3.7/site-packages/setuptools/__init__.py", line 129, in setup
return distutils.core.setup(**attrs)
File "/usr/lib64/python3.7/distutils/core.py", line 121, in setup
dist.parse_config_files()
File "/usr/lib/python3.7/site-packages/setuptools/dist.py", line 442, in parse_config_files
ignore_option_errors=ignore_option_errors)
File "/usr/lib/python3.7/site-packages/setuptools/config.py", line 106, in parse_configuration
meta.parse()
File "/usr/lib/python3.7/site-packages/setuptools/config.py", line 382, in parse
section_parser_method(section_options)
File "/usr/lib/python3.7/site-packages/setuptools/config.py", line 355, in parse_section
self[name] = value
File "/usr/lib/python3.7/site-packages/setuptools/config.py", line 173, in __setitem__
value = parser(value)
File "/usr/lib/python3.7/site-packages/setuptools/config.py", line 430, in _parse_version
version = self._parse_attr(value)
File "/usr/lib/python3.7/site-packages/setuptools/config.py", line 305, in _parse_attr
module = import_module(module_name)
File "/usr/lib64/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'markupsafe'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-axjgd0da/MarkupSafe/
The command '/bin/sh -c pip3 install -r $DOCKER_APP_HOME/requirements.txt' returned a non-zero code: 1
make: *** [docker-build] Error 1
It is a version problem.
The current version is 2.1.0, which I downgraded to Markupsafe==2.0.1. I added the "Markupsafe==2.0.1" in the requirements.txt, then I don't have the problem anymore.