|
发表于 2018-9-19 10:21:15
|
显示全部楼层
看起来你没有正确安装python dev的头文件和静态库。使用包管理器在系统范围内安装它们。
对于apt(Ubuntu,Debian ......):
sudo apt-get install python-dev # for python2.x installs
sudo apt-get install python3-dev # for python3.x installs
对于yum(CentOS,RHEL ......):
sudo yum install python-devel # for python2.x installs
sudo yum install python34-devel # for python3.4 installs
对于dnf(Fedora ......):
sudo dnf install python2-devel # for python2.x installs
sudo dnf install python3-devel # for python3.x installs
对于zypper(openSUSE ...):
sudo zypper in python-devel # for python2.x installs
sudo zypper in python3-devel # for python3.x installs
对于apk(akos......):
# This is a departure from the normal Alpine naming
# scheme, which uses py2- and py3- prefixes
sudo apk add python2-dev # for python2.x installs
sudo apk add python3-dev # for python3.x installs
|
|