can't pip install mysql-python

前端 未结 4 667
攒了一身酷
攒了一身酷 2020-12-01 16:31

I\'m trying to get django/pip/mysql working and i can\'t seem to figure out how to install mysql-python. this is the error i receive when trying to install mysql-python

相关标签:
4条回答
  • 2020-12-01 16:53

    First create path as below by running into terminal

    export PATH=/usr/local/mysql/bin:$PATH

    After doing this run following command to terminal

    sudo pip3 install flask-mysqldb

    0 讨论(0)
  • 2020-12-01 16:55

    try

    apt-get install python-mysqldb
    

    Worked for me.

    0 讨论(0)
  • ubuntu: sudo apt-get install libmysqlclient-dev

    0 讨论(0)
  • 2020-12-01 17:09

    try downloading python-dev through software manager:

    sudo apt-get install python-dev
    
    0 讨论(0)
提交回复
热议问题