Cannot use pip install pandas
Have you tried:
pip3 install pandas?
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.