Using PIP In A Virtual Environment, How Do I Install MySQL-python
When I'm in my virtual environment, I attempt to run: pip install MySQL-python This didn't work, so I tried downloading the package and installing it by running: python setup.py i
Solution 1:
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
Solution 2:
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).
Post a Comment for "Using PIP In A Virtual Environment, How Do I Install MySQL-python"