PS E:\CODING\OC图表数据拉取> pip install pandas 警告:忽略无效分发 -ip (c:\msys64\mingw64\lib\python3.10\site-packages) 警告:忽略无效分发 -ip (c:\msys64\mingw64\lib\python3.10\site-packages) 收集熊猫 使用缓存的 pandas-2.0.0.tar.gz (5.3 MB) 安装构建依赖项...错误 错误:子进程因错误而退出
× 用于安装构建依赖项的 pip 子进程未成功运行。 │ 退出代码:1 ╰─>【77行输出】 警告:忽略无效分发 -ip (c:\msys64\mingw64\lib\python3.10\site-packages) 收集 setuptools>=61.0.0 使用缓存的 setuptools-67.6.1-py3-none-any.whl (1.1 MB) 收集轮 使用缓存的 wheel-0.40.0-py3-none-any.whl (64 kB) 收集 Cython<3,>=0.29.33 使用缓存的 Cython-0.29.34-py2.py3-none-any.whl (988 kB) 正在收集最旧支持的 numpy>=2022.8.16 使用缓存的 oldest_supported_numpy-2022.11.19-py3-none-any.whl (4.9 kB) 收集 versioneer[toml] 使用缓存版本eer-0.28-py3-none-any.whl (45 kB) 收集 numpy==1.21.6 使用缓存的 numpy-1.21.6.zip (10.3 MB) 安装构建依赖项:开始 安装构建依赖项:完成状态为“完成” 获取构建轮子的要求:开始 获取构建轮子的要求:完成状态为“错误” 错误:子进程因错误而退出
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.10\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
main()
File "C:\msys64\mingw64\lib\python3.10\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\msys64\mingw64\lib\python3.10\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 112, in get_requires_for_build_wheel
backend = _build_backend()
File "C:\msys64\mingw64\lib\python3.10\site-packages\pip\_vendor\pyproject_hooks\_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\Nikhilesh Sakhare\AppData\Local\Temp\pip-build-env-3btuqwdd\overlay\lib\python3.10\site-packages\setuptools\__init__.py", line 242, in <module>
monkey.patch_all()
File "C:\Users\Nikhilesh Sakhare\AppData\Local\Temp\pip-build-env-3btuqwdd\overlay\lib\python3.10\site-packages\setuptools\monkey.py", line 99, in patch_all
patch_for_msvc_specialized_compiler()
File "C:\Users\Nikhilesh Sakhare\AppData\Local\Temp\pip-build-env-3btuqwdd\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\Nikhilesh Sakhare\AppData\Local\Temp\pip-build-env-3btuqwdd\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\Nikhilesh Sakhare\AppData\Local\Temp\pip-build-env-3btuqwdd\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.
WARNING: Ignoring invalid distribution -ip (c:\msys64\mingw64\lib\python3.10\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\msys64\mingw64\lib\python3.10\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\msys64\mingw64\lib\python3.10\site-packages)
[end of output]
注意:此错误源自子进程,可能不是 pip 的问题。 错误:子进程因错误而退出
× 用于安装构建依赖项的 pip 子进程未成功运行。 │ 退出代码:1 ╰─> 见上文输出。
注意:此错误源自子进程,可能不是 pip 的问题。 警告:忽略无效分发 -ip (c:\msys64\mingw64\lib\python3.10\site-packages) 警告:忽略无效分发 -ip (c:\msys64\mingw64\lib\python3.10\site-packages) 警告:忽略无效分发 -ip (c:\msys64\mingw64\lib\python3.10\site-packages)
错误消息表明您的系统上安装的 Visual C++ 版本可能存在问题。
您可以尝试安装微软的 Build Tools for Visual Studio 2019,其中包括 pandas 所需的必要 C++ 构建工具。您可以从以下链接下载并安装构建工具:https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2019
安装构建工具后,尝试在终端中运行以下命令:
pip install pandas
确保您的 Python 和 Visual C++ 安装是最新的。如果您仍然遇到问题,请提供有关系统设置的更多信息。