installation of python mysqldb

First my environment python3.8 I use cmd in the python -V visiting PyCharm seen in 3.8, but 3.7 is the first of this matter anyway, I will not

I installed MySQLdb with python reported to me a mistake to forget details. But the final note, let me try it updated version pip. python very sensitive to this version so I put my pip update the latest version (note, draw the focus)

Then I installed with PyCharm install MySQLdb successful sleepwalk though installed. But the installation was successful  

Said online through this website:  https://pypi.org/project/mysqlclient/#files  download this file: mysqlclient-1.4.5-cp37-cp37m -win_amd64.whl ( note the version 3.7 on the next question is if the belt 37 ) but seemingly not for me

Anyway, I installed regardless of the success of Jiang Zi directly through PyCharm

 

 But the problem arises when I import MySQLdb has given the following information:

 

This problem fast Chousi me. Display by PyCharm download version 1.4.4. The results for a long time to get down. Then this problem has been entangled. Until now or not and regardless of the down under this

Then I looked at the error message that you hold off because of inconsistent versions pip where I just draw the focus also said the first step when I upgraded pip. So my pip is the latest version, only under a new MySQLdb

This is where the problem lies. Then I changed my anaconda3 downloaded 1.4.4 finally resolved. Again python very sensitive version

Guess you like

Origin www.cnblogs.com/zbzdqsmh/p/11904348.html