Installation on Windows 10 (Python 3.9) fails when trying to install the Pandas library
digeomel opened this issue ยท 5 comments
It seems that it's trying to install Pandas version 0.25.3, while the latest version (which installs separately with no issues) is 1.1.4. I've installed Cython and Wheel before that, because it seemed to be throwing some errors related to that, but still no luck. The last error in the stacktrace is this:
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DNPY_NO_DEPRECATED_API=0 -Ipandas/_libs/src/ujson/python -Ipandas/_libs/src/ujson/lib -Ipandas/_libs/src/datetime -IC:\Python39\lib\site-packages\numpy\core\include -IC:\Python39\include -IC:\Python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcpandas/_libs/src/ujson/python/objToJSON.c /Fobuild\temp.win-amd64-3.9\Release\pandas/_libs/src/ujson/python/objToJSON.obj -D_GNU_SOURCE
objToJSON.c
pandas/_libs/src/ujson/python/objToJSON.c(181): error C2065: 'NUMPY_IMPORT_ARRAY_RETVAL': undeclared identifier
pandas/_libs/src/ujson/python/objToJSON.c(181): warning C4047: 'return': 'void *' differs in levels of indirection from 'int'
pandas/_libs/src/ujson/python/objToJSON.c(479): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data
pandas/_libs/src/ujson/python/objToJSON.c(680): warning C4244: '=': conversion from 'npy_intp' to 'int', possible loss of data
pandas/_libs/src/ujson/python/objToJSON.c(959): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
pandas/_libs/src/ujson/python/objToJSON.c(1050): warning C4244: '=': conversion from 'npy_intp' to 'int', possible loss of data
pandas/_libs/src/ujson/python/objToJSON.c(1844): warning C4244: '=': conversion from 'npy_float64' to 'npy_int64', possible loss of data
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
Any ideas?
I think the issue is with Python 3.9, it's too new ๐
Indeed, with Python 3.8 the installation runs without issues.
Maybe this needs to be written in the installation instructions.
Hi, thanks for reporting.
by the time I wrote the latest commit even python 3.8 was not in wide use, so no surprise that there is an issue with 3.9. CI was configured for python 3.6.
Currently, I do not have time to continue development and will appreciate a PR with update to README.
Done. I updated the readme and also created a pipfile (https://realpython.com/pipenv-guide/) which seems to be the standard for Python dependencies these days (although I am not a Python expert, by any means, so please feel free to correct me). It lists Python 3.8 as a dependency, maybe this needs to be edited to include older compatible versions (I added a badge to show that it works with 3.6-3.8).
thank you for your contribution