Django mysqlclient install Django mysqlclient install database database

Django mysqlclient install


You don't download the whl file yourself. You use pip to install it directly:

pip install mysqlclient.

Note that you don't need this to try Django; nor do you need Apache. Python and Django is already an "integrated development environment" since Python includes sqlite3, and Django includes a development server.


I'd recommend that you read up the basics of virtualenv (http://docs.python-guide.org/en/latest/dev/virtualenvs/) and continue from there.

Basically following commands should get you running:

$ cd ~/your_project_directory$ virtualenv env$ source env/bin/activate$ pip install django$ pip install mysql-python

Make sure you have MySQL (server) installed on your system. If you're on Mac OS X, brew (http://brew.sh/) is quite handy.


Here is my solution. Make sure your virtualenv is activated, then type the following:

apt-get install default-libmysqlclient-devpip install mysqlclient