下面是我得到的错误。
SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-d ev|python-devel.
_configtest.c:1:5: warning: conflicting types for built-in function ‘exp’
int exp (void);
^~~
_configtest.c:1:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
_configtest.c:1:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
发布于 2021-01-15 05:32:16
您需要安装正确的python3*-devel
包:
$ cygcheck -l python36-devel |grep "Python.h"
/usr/include/python3.6m/Python.h
$ cygcheck -l python38-devel |grep "Python.h"
/usr/include/python3.8/Python.h
发布于 2021-01-15 06:55:08
最好的方法是安装最新版本的cygwin附带的Mobaxterm,然后运行以下命令。
apt-get install python3-pip
它将同时安装Python3和pip3以及所有依赖项。
然后运行
pip3 install pandas
对我很管用。
https://stackoverflow.com/questions/65729087
复制