Skip to content

Instantly share code, notes, and snippets.

@andreymeretsky
Forked from shibli049/mysqldb_python3.sh
Created September 4, 2018 12:48

Revisions

  1. @shibli049 shibli049 revised this gist Oct 29, 2017. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions mysqldb_python3.sh
    Original file line number Diff line number Diff line change
    @@ -2,4 +2,6 @@
    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
  2. @shibli049 shibli049 revised this gist Dec 5, 2014. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions mysqldb_python3.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    #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
    python3 manage.py migrate
  3. @shibli049 shibli049 created this gist Dec 5, 2014.
    3 changes: 3 additions & 0 deletions mysqldb_python3.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    sudo apt-get install libmysqlclient-dev
    sudo pip3 install mysqlclient
    python3 manage.py migrate