pip安装mysqlclient报 it does not have a ‘pyproject.toml‘ and the ‘wheel‘ package is not installed

pip安装mysqlclient报 it does not have a ‘pyproject.toml‘ and the ‘wheel‘ package is not installed_第1张图片

 在pip安装mysqlclient报 DEPRECATION: mysqlclient is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. 

解决办法:

可以尝试直接去 这个网站 手动下载 wheel 文件:

pip安装mysqlclient报 it does not have a ‘pyproject.toml‘ and the ‘wheel‘ package is not installed_第2张图片

 我用的是python3.7,所以这里显示的是cp37, 所以我选择了 mysqlclient-1.4.6-cp37-cp37m-win_amd64.whl,将文件下载下来后放到自己的项目文件夹下(当然你cd到下载的目录去安装也可以),在虚拟环境下安装:

$ pip install mysqlclient-1.4.6-cp37-cp37m-win_amd64.whl

你可能感兴趣的:(pip,python,前端)