pycharm django install mysqlclient failed

Viewed 153

I start a Django project by Pycharm and require to use the Mysql as database, there is somthing wrong with installing the mysqlclient package.I have searched the info and downloaded the package from www.lfd.uci.edu.When I pip install the .whl file,it told me not match the platform. But I use the same package to pip install in cmd sucessfully. I wonder there is something different between the venv and local? the detail screenshot as below:
my venv Python version:

Python 3.8.8 (default, Apr 13 2021, 15:08:03) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32


I have try some different version mysqlclient

pip  install mysqlclient-1.4.6-cp38-cp38-win32.whl
pip install mysqlclient-1.4.6-cp38-cp38-win_amd64.whl

both of above are wrong as below:

mysqlclient-1.4.6-cp38-cp38-win_amd64.whl is not a supported wheel on this platform.

I don`t have the enough reputation to post the image,I just can let them as a tags.I hope someone can help me out.Thanks for reading this question.

1 Answers

use

pip install mysqlclient

When you already compilred packages on your system it shouldn't cause a problem.

See for more information

If you need an older Version

pip install mysqlclient==1.4.6
Related