Mac pip install mysql-python unsuccessful

后端 未结 6 1043
一个人的身影
一个人的身影 2020-12-08 23:21

I installed MySQL and Workbench from website. I have a django project whose requirements.txt:

Django==1.11.12
djangorestframework==3.8.2
django-cors-headers=         


        
6条回答
  •  感情败类
    2020-12-08 23:29

    Just uninstall your Mysql, and install MySql 5.7 and is fixed!!!!

    If you are not successful from any of the above solutions, it means that your MySql version is not matching the requirements. i was thinking that it is because of Python or PyCharm, and i used virtualenv and conda but no luck, so when i compared my dependencies to one of my friend's computer, it was MySql version. downgraded to 5.7 and its working fine.

提交回复
热议问题