Skip to content

Instantly share code, notes, and snippets.

@rbhushan90
Forked from shibli049/mysqldb_python3.sh
Created April 10, 2019 15:44
Show Gist options
  • Save rbhushan90/48b49d142d8fb9d59868c216276e342b to your computer and use it in GitHub Desktop.
Save rbhushan90/48b49d142d8fb9d59868c216276e342b to your computer and use it in GitHub Desktop.
Install mysqlclient for python3
#sudo pip3 install mysqlclient fails with mysql_config not found
sudo apt-get install libmysqlclient-dev
#without pip3 it will not going to work for python3
sudo pip3 install mysqlclient
# to run django migration
python3 manage.py migrate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment