Error installing mysqlclient for python on Ubuntu 18.04

前端 未结 6 609
挽巷
挽巷 2020-12-01 14:57

I installed Python 2.7.15rci and Python 3.6.7 on Ubuntu. When i did \'pip list\' on virtualenv it returns me:

Django (2.1.5)
pip (9.0.1)
pkg-resources (0.0.0         


        
6条回答
  •  北荒
    北荒 (楼主)
    2020-12-01 15:25

    I specified the particular version of python it's 3.7 And that helped me

    I have installed these ones:

    sudo apt-get install python3.7-dev libmysqlclient-dev
    

    And then installed mysqlclient by:

    pip install mysqlclient
    

提交回复
热议问题