pandas-dev / pandas

Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more
https://pandas.pydata.org
BSD 3-Clause "New" or "Revised" License
43.82k stars 17.99k forks source link

PANDAS FAILED INSTALLATATION VIA PIP ON WINDOWS 11 #43969

Closed jdfoxito closed 3 years ago

jdfoxito commented 3 years ago

La instalacion falla, para la ultima version de pandas, e incluso empieza a buscar otra version y tampoco la encuentra una que funcione todas caen.

C:\Users\ufx>pip install pandas Collecting pandas Using cached pandas-1.3.3.tar.gz (4.7 MB) Installing build dependencies ... error ERROR: Command errored out with exit status 1: command: 'C:\Users\ufx\AppData\Local\Programs\Python\Python310\python.exe' 'C:\Users\ufx\AppData\Local\Temp\pip-standalone-pip-hwkn7bp9__env_pip__.zip\pip' install --ignore-installed --no-user --prefix 'C:\Users\ufx\AppData\Local\Temp\pip-build-env-q28f4203\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=51.0.0' wheel 'Cython>=0.29.21,<3' 'numpy==1.17.3; python_version=='"'"'3.7'"'"' and (platform_machine!='"'"'arm64'"'"' or platform_system!='"'"'Darwin'"'"') and platform_machine!='"'"'aarch64'"'"'' 'numpy==1.18.3; python_version=='"'"'3.8'"'"' and (platform_machine!='"'"'arm64'"'"' or platform_system!='"'"'Darwin'"'"') and platform_machine!='"'"'aarch64'"'"'' 'numpy==1.19.3; python_version>='"'"'3.9'"'"' and (platform_machine!='"'"'arm64'"'"' or platform_system!='"'"'Darwin'"'"') and platform_machine!='"'"'aarch64'"'"'' 'numpy==1.19.2; python_version=='"'"'3.7'"'"' and platform_machine=='"'"'aarch64'"'"'' 'numpy==1.19.2; python_version=='"'"'3.8'"'"' and platform_machine=='"'"'aarch64'"'"'' 'numpy>=1.20.0; python_version=='"'"'3.8'"'"' and platform_machine=='"'"'arm64'"'"' and platform_system=='"'"'Darwin'"'"'' 'numpy>=1.20.0; python_version=='"'"'3.9'"'"' and platform_machine=='"'"'arm64'"'"' and platform_system=='"'"'Darwin'"'"'' cwd: None Complete output (839 lines): Ignoring numpy: markers 'python_version == "3.7" and (platform_machine != "arm64" or platform_system != "Darwin") and platform_machine != "aarch64"' don't match your environment Ignoring numpy: markers 'python_version == "3.8" and (platform_machine != "arm64" or platform_system != "Darwin") and platform_machine != "aarch64"' don't match your environment Ignoring numpy: markers 'python_version == "3.7" and platform_machine == "aarch64"' don't match your environment Ignoring numpy: markers 'python_version == "3.8" and platform_machine == "aarch64"' don't match your environment Ignoring numpy: markers 'python_version == "3.8" and platform_machine == "arm64" and platform_system == "Darwin"' don't match your environment Ignoring numpy: markers 'python_version == "3.9" and platform_machine == "arm64" and platform_system == "Darwin"' don't match your environment Collecting setuptools>=51.0.0 Using cached setuptools-58.2.0-py3-none-any.whl (946 kB) Collecting wheel Using cached wheel-0.37.0-py2.py3-none-any.whl (35 kB)

samarthpusalkar commented 3 years ago

is this error persistent even if you create new environment

mzeitlin11 commented 3 years ago

@jdfoxito this would be easier to look into if you use the build issue template to provide other helpful information.

jdfoxito commented 3 years ago

Environment : WINDOWS 11 64 BIT, I download python version: https://www.python.org/downloads/release/python-3100/ Windows installer (64-bit) c3917c08a7fe85db7203da6dcaa99a70 Visual Studio 2019 last update, Directx latest version for nvidia

I try install pandas:

C:\Users\ufx>pip install pandas Collecting pandas Using cached pandas-1.3.3.tar.gz (4.7 MB)

this error: Generating code Finished generating code building 'pandas._libs.parsers' extension C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DNPY_NO_DEPRECATED_API=0 -I.\pandas_libs -Ipandas/_libs/src/klib -Ipandas/_libs/src -IC:\Users\ufx\AppData\Local\Temp\pip-build-env-e6frjkyc\overlay\Lib\site-packages\numpy\core\include -IC:\Users\ufx\AppData\Local\Programs\Python\Python310\include -IC:\Users\ufx\AppData\Local\Programs\Python\Python310\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /Tcpandas/_libs/src/parser/io.c /Fobuild\temp.win-amd64-3.10\Release\pandas/_libs/src/parser/io.obj io.c pandas/_libs/src/klib\khash.h(705): warning C4090: 'function': different 'const' qualifiers pandas/_libs/src/parser/io.c(139): error C2065: 'ssize_t': undeclared identifier pandas/_libs/src/parser/io.c(139): error C2146: syntax error: missing ';' before identifier 'rv' pandas/_libs/src/parser/io.c(139): error C2065: 'rv': undeclared identifier pandas/_libs/src/parser/io.c(145): error C2065: 'rv': undeclared identifier pandas/_libs/src/parser/io.c(145): warning C4267: 'function': conversion from 'size_t' to 'unsigned int', possible loss of data pandas/_libs/src/parser/io.c(146): error C2065: 'rv': undeclared identifier pandas/_libs/src/parser/io.c(157): error C2065: 'rv': undeclared identifier pandas/_libs/src/parser/io.c(158): error C2065: 'rv': undeclared identifier error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX86\x64\cl.exe' failed with exit code 2

ERROR: Failed building wheel for pandas Failed to build pandas ERROR: Could not build wheels for pandas which use PEP 517 and cannot be installed directly

but Python 3.9.7 works correctly,

lithomas1 commented 3 years ago

We do not support Python 3.10 officially, and only release wheels for linux so far, but not Windows or MacOS. Support for Python 3.10 is planned on either the next release or the release after that.

jdfoxito commented 3 years ago

In this place,

https://www.python.org/downloads/release/python-3100/

you should set an alert python 3.10 is not compatible with pandas yet.

jreback commented 3 years ago

pandas IS compatable with 3.10, however a number of packages need to be released first (e.g. numpy) with official wheels. this is a normal part of the process.

jdfoxito commented 3 years ago

pandas IS compatable with 3.10, however a number of packages need to be released first (e.g. numpy) with official wheels. this is a normal part of the process.

DATE APROX?

bmarotta commented 2 months ago

I agree, if it doesn't work, it is not compatible. It would saves a lot of time if you just issue a warning.