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
原文地址:https://www.cnblogs.com/cutd/p/5672909.html