无法在 dreamhost 服务器上安装 mysqlclient

Unable to Install mysqlclient on dreamhost server

我正在尝试在我的 dreamhost 共享服务器上设置一个 mysql 数据库,但似乎没有 mysql 客户端我无法继续。当我尝试 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: fatal error: Python.h: No such file or directory

#include "Python.h"

                ^

compilation terminated.

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

我在其他答案中看到这些类型的问题可以用

解决
apt-get install python3.4-dev

但是在 dreamhost 的共享服务器产品上,我无法执行该命令。我还能做些什么来获取 mysql 客户端或在没有它的情况下设置我的 mysql 吗?

我通过安装 Python 3.6 并在我的 virtualenv 中使用它而不是 Python 3.4 来解决这个问题。之后我能够 pip install mysqlclient