I am developing a project based on Django and MySQL on Ubuntu. I am a little confused about how MySQL should be installed. Should it be installed into the virtual environment or should it be installed into the system:
(a) To install MySQL in the virtual environment (python2Venv
is the directory of the virtual environment):
$ sudo apt-get install libmysqlclient-dev
$ source <python2Venv>/bin/activate
(python2Venv)$ pip install MySQL-python
(b) However, according to the installation guide about MySQL, I have to do (https://help.ubuntu.com/12.04/serverguide/mysql.html):
$ sudo apt-get install mysql-python
$ sudo apt-get install mysql-server
Questions:
Is the above steps correct? Are both (a) and (b) necessary, or one of them is enough (maybe with additional setups)?