pandas offline install error 'NUMPY_IMPORT_ARRAY_RETVAL' was not declared

Offline package download
After decompression, the python3 setup.py install
installation prompts the error as follows:
insert image description here
Open the location of the offline package
insert image description here
Add the following content to the header file
insert image description here

#if PY_VERSION_HEX >= 0x03000000
#define NUMPY_IMPORT_ARRAY_RETVAL NULL
#else
#define NUMPY_IMPORT_ARRAY_RETVAL
#endif

Install successfully again python3 setup.py install

Guess you like

Origin blog.csdn.net/qq_44624722/article/details/125275805