Atl*_*435 15 python installation pip pandas
我正在尝试通过pip install pandas
我的笔记本电脑安装 pandas。
环境:
\n兼容性:
\n\n\nC:\\Users\\PC>pip install pandas\nWARNING: Ignoring invalid distribution -ywin32 (c:\\users\\pc\\appdata\\local\\programs\\python\\python310-32\\lib\\site-packages)\nWARNING: Ignoring invalid distribution -ywin32 (c:\\users\\pc\\appdata\\local\\programs\\python\\python310-32\\lib\\site-packages)\nCollecting pandas\n Using cached pandas-1.4.2.tar.gz (4.9 MB)\n Installing build dependencies ... done\n Getting requirements to build wheel ... done\n Preparing metadata (pyproject.toml) ... done\nRequirement already satisfied: numpy>=1.21.0 in c:\\users\\pc\\appdata\\local\\programs\\python\\python310-32\\lib\\site-packages (from pandas) (1.22.4)\nRequirement 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)\nCollecting pytz>=2020.1\n Using cached pytz-2022.1-py2.py3-none-any.whl (503 kB)\nRequirement 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)\nBuilding wheels for collected packages: pandas\n Building wheel for pandas (pyproject.toml) ... error\n error: subprocess-exited-with-error\n\n \xc3\x97 Building wheel for pandas (pyproject.toml) did not run successfully.\n \xe2\x94\x82 exit code: 1\n \xe2\x95\xb0\xe2\x94\x80> [2010 lines of output]\n 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.\n warnings.warn(msg, warning_class)\n
Run Code Online (Sandbox Code Playgroud)\n\n\n\n...
\n
note: This error originates from a subprocess, and is likely not a problem with pip.\n ERROR: Failed building wheel for pandas\nFailed to build pandas\nERROR: Could not build wheels for pandas, which is required to install pyproject.toml-based projects\n
Run Code Online (Sandbox Code Playgroud)\n我尝试过的:
\npandas 1.5.1仍然可以重现错误
\n感谢 @AKX指出,将来没有、也可能不会有 32 位版本的 pandas。请参阅 GitHub 上的讨论。
\nPandas 不需要 Anaconda 才能工作,但根据python310-32
您的输出,您正在使用 32 位的 Python 版本。
Pandas显然没有为 Python 3.10 提供 32 位轮子(尽管它们确实为 Python 3.8 和 Python 3.9 提供了 win32 轮子)。(预建 32 位轮子可能有其他来源,例如Gohlke 的网站。)
换句话说,在该平台上,您需要从源代码安装 Pandas,这可能是一项相当困难的任务,并且pip
无论如何都不能直接在内部完成(正如您通过 注意到的那样error: metadata-generation-failed
)。
如果您的系统能够运行 64 位 Python,您应该切换到它。
归档时间: |
|
查看次数: |
77616 次 |
最近记录: |