一、问题
小编是在Anaconda Prompt中利用pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pycaret[full]安装pycaret时出现这个错误ERROR: Could not install packages due to an OSError: [WinError 5] 拒绝访问。: 'C:\\Users\\wanyi-2018-1\\.conda\\envs\\pycaret\\Lib\\site-packages\\~ywin32_system32\\pythoncom36.dll'
Consider using the `--user` option or check the permissions.从问题提示来看,应该时权限的问题,小编已经是以管理员身份运行Anaconda Prompt的,所以就试了如下方法去解决。
二、解决办法
根据提示,在代码中加入--user就没有再报错啦。
将pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pycaret[full]转为如下方式运行:
pip install --user -i https://pypi.tuna.tsinghua.edu.cn/simple pycaret[full]