我正试图通过pip install pandas
在我的笔记本电脑上安装熊猫。
环境:
兼容性:
C:\Users\PC>pip install pandas
WARNING: Ignoring invalid distribution -ywin32 (c:\users\pc\appdata\local\programs\python\python310-32\lib\site-packages)
WARNING: Ignoring invalid distribution -ywin32 (c:\users\pc\appdata\local\programs\python\python310-32\lib\site-packages)
Collecting pandas
Using cached pandas-1.4.2.tar.gz (4.9 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy>=1.21.0 in c:\users\pc\appdata\local\programs\python\python310-32\lib\site-packages (from pandas) (1.22.4)
Requirement already satisfied: python-dateutil>=2.8.1 in c:\users\pc\appdata\local\programs\python\python310-32\lib\site-packages (from pandas) (2.8.2)
Collecting pytz>=2020.1
Using cached pytz-2022.1-py2.py3-none-any.whl (503 kB)
Requirement already satisfied: six>=1.5 in c:\users\pc\appdata\local\programs\python\python310-32\lib\site-packages (from python-dateutil>=2.8.1->pandas) (1.16.0)
Building wheels for collected packages: pandas
Building wheel for pandas (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for pandas (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [2010 lines of output]
C:\Users\PC\AppData\Local\Temp\pip-build-env-q3kdt5nb\overlay\Lib\site-packages\setuptools\config\setupcfg.py:459: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
warnings.warn(msg, warning_class)
..。
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pandas
Failed to build pandas
ERROR: Could not build wheels for pandas, which is required to install pyproject.toml-based projects
我试过的是:
误差仍可用熊猫1.5.1再现
参见关于GitHub的讨论. 感谢@AKX 指出,未来熊猫不会也可能不会有32位版本。
发布于 2022-11-01 14:28:44
发布于 2022-08-12 06:35:54
用Python3.10安装熊猫
python -m pip install pandas
发布于 2022-09-14 10:43:10
第一步
下载熊猫轮,选择一个适合您的操作系统
第二步
从绝对路径安装车轮
pip install pandas-1.4.2-cp310-cp310-win32.whl
第三步
你已经成功安装了熊猫
import pandas
https://stackoverflow.com/questions/72401377
复制相似问题