Python 3.7, Failed building wheel for MySql-Python

前端 未结 11 1492
忘了有多久
忘了有多久 2020-12-14 08:53

I am new to python and I am trying django framework that involves some MySql and ran into this error when try to do pip install mysqlclient and down the lines o

11条回答
  •  余生分开走
    2020-12-14 09:03

    ensuring you have had done the needful with python...

    and installing on the global level... (not virtual environment)

    sudo apt-get install mysql-server pip install --upgrade setuptools

    I had come across the same problem, because I installed default Python2.7.15, and python3 would break even after doing the needful for Python (being python2)

    something that worked for me was (effectively the last one is what made it work, but i think they were equally required on my virtualenvironment with python3)

    sudo apt-get install libmysqlclient-dev
    sudo apt-get install python3-pymysql
    sudo apt-get install python3.6-dev
    

    python3.7 in your case in the virtualenv

    I also had to go through..

提交回复
热议问题