pypy的virtualenv安装mysql的问题解决

pypy安装mysql

构建基于pypy的virtualenv

  • pip install virtualenv
  • pip install pypy
  • virtualenv --no-site-packages -p pypy pypydev
  • source pypydev/bin/activate

安装mysql的问题

` _mysql.c:29:20: fatal error: Python.h: No such file or directory
#include "Python.h"
^
compilation terminated.
error: command 'cc' failed with exit status 1


Failed building wheel for MySQL-python
`

解决办法

解决办法时安装pypy-dev

  • pip install pypy-dev
  • pip install mysql-python
上一篇:玩转大数据:深入浅出大数据挖掘技术(Apriori算法、Tanagra工具、决策树)


下一篇:Linux 内核 struct device 设备