【发布时间】:2018-11-24 21:35:08
【问题描述】:
我正在尝试在我的dreamhost 共享服务器上设置一个mysql 数据库,但如果没有mysqlclient,我似乎无法继续。当我尝试pip install mysqlclient 但是我得到了
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -Dversion_info=(1,3,12,'final',0 ) -D__version__=1.3.12 -I/usr/include/mysql -I/usr/include/python3.4m -I/home/eptaba/aeromembers.com/AeroMembers_env/include/python3.4m -c _mysql.c -o build/temp.linux-x86_64-3.4/_mysql.o -DBIG_JOINS=1 -fno-strict-aliasing -g -DNDEBUG
_mysql.c:32:20:致命错误:Python.h:没有这样的文件或目录
#include "Python.h"
^编译终止。
错误:命令“x86_64-linux-gnu-gcc”失败,退出状态为 1
我在其他答案中看到,这些类型的问题可以通过
解决apt-get install python3.4-dev
但在 Dreamhost 的共享服务器产品上,我无法执行该命令。我还能做些什么来获取 mysqlclient 或在没有它的情况下设置我的 mysql?
【问题讨论】: