在安装pymysql 的时候
我们点击箭头部分输入:pip install pymysql,安装插件的时候,会发生报错
报错信息如下:
此时,把输入内容改为下面内容即可:
pip install pymysql -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
1
安装成功效果图:
直接在WINDOWS 下面
venv) C:\Users\Administrator>pip install pymysql -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
Looking in indexes: http://pypi.douban.com/simple
Collecting pymysql
Downloading http://pypi.doubanio.com/packages/4f/52/a115fe175028b058df353c5a3d5290b71514a83f67078a6482cff24d6137/PyMySQL-1.0.2-py3-none-any.whl (43 kB)
|████████████████████████████████| 43 kB …
Installing collected packages: pymysql
Successfully installed pymysql-1.0.2
WARNING: You are using pip version 21.3.1; however, version 22.1.1 is available.
You should consider upgrading via the ‘C:\Users\Administrator\PycharmProjects\pythonProject\venv\Scripts\python.exe -m pip install --upgrade pip’ command.