1.问题出现场景:
当安装(C:\Program Files\Anaconda3) C:\Users\lzjf>pip install PyMySQL时,
2.出现的结果:
PermissionError: [WinError 5] 拒绝访问。: ‘C:\Program Files\Anaconda3\Lib\site-packages\pymysql’
3.出现的原因:
是因为权限不够。
4.解决的方案:
增加管理员的权限
(C:\Program Files\Anaconda3) C:\Users\lzjf>pip install --user PyMySQL
Collecting PyMySQL
Using cached https://files.pythonhosted.org/packages/32/e8/222d9e1c7821f935d6dba8d4c60b9985124149b35a9f93a84f0b98afc219/PyMySQL-0.8.1-py2.py3-none-any.whl
Installing collected packages: PyMySQL
Successfully installed PyMySQL