要特别注意的时候,需要把ven配置好,不然后面识别不到系统已经安装了的wheel 啊 mysqlclient啊在这里插入图片描述

在这里插入图片描述
不然在pycharm里面会提示你没有安装wheel
mysqlclient但是实际上你已经安装了只不过pycharm没找到位置

可怕的提示:
Failed building wheel for mysqlclient
Command “C:\Users\Administrator\PycharmProjects\day05\venv\Scripts\python.exe -u -c “import setuptools, tokenize;file=‘C:\Users\Administrator\AppData\Local\Temp\pycharm-packaging\mysqlclient\setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record C:\Users\Administrator\AppData\Local\Temp\pip-record-stgu6rhc\install-record.txt --single-version-externally-managed --compile --install-headers C:\Users\Administrator\PycharmProjects\day05\venv\include\site\python3.8\mysqlclient” failed with error code 1 in C:\Users\Administrator\AppData\Local\Temp\pycharm-packaging\mysqlclient\

如果按照我上面的在建立项目的时候操作清楚是不会出现找不到的情况的,

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐