看来你尚未正确安装python dev的标头文件和静态库。使用软件包管理器在系统范围内安装它们。
对于
apt(Ubuntu,Debian …):
sudo apt-get install python-dev # for python2.x installssudo apt-get install python3-dev # for python3.x installs
对于
yum(CentOS,RHEL …):
sudo yum install python-devel # for python2.x installssudo yum install python3-devel # for python3.x installs
对于
dnf(Fedora …):
sudo dnf install python2-devel # for python2.x installssudo dnf install python3-devel # for python3.x installs
对于
zypper(openSUSE …):
sudo zypper in python-devel # for python2.x installssudo zypper in python3-devel # for python3.x installs
对于apk(Alpine …):
# This is a departure from the normal Alpine naming# scheme, which uses py2- and py3- prefixessudo apk add python2-dev # for python2.x installssudo apk add python3-dev # for python3.x installs
对于apt-cyg(Cygwin …):
apt-cyg install python-devel # for python2.x installsapt-cyg install python3-devel # for python3.x installs
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)