Using PIP in a virtual environment, how do I install MySQL-python

自古美人都是妖i 提交于 2019-12-03 01:50:28

The reason this was occurring is because I need to install the python-dev package (which I stupidly assumed had already been installed).

% sudo apt-get install python-dev

followed by

% pip install MySQL-python

You might also need to install libmysqlclient-dev in some Ubuntu installations

sudo apt-get install python-dev libmysqlclient-dev

That's what was holding me back (on top of python-dev).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!