[英]while installing boto3, getting access error
I am trying to install boto3 in my VDI.我正在尝试在我的 VDI 中安装 boto3。 But i am getting following error.但我收到以下错误。
Requirement already satisfied: six>=1.5 in c:\programdata\anaconda3\lib\site-packages (from python-dateutil<3.0.0,>=2.1->botocore<1.21.0,>=1.20.5->boto3) (1.12.0)
ERROR: requests 2.22.0 has requirement urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1, but you'll have urllib3 1.26.3 which is incompatible.
Installing collected packages: urllib3, botocore, s3transfer, boto3
Found existing installation: urllib3 1.24.2
Uninstalling urllib3-1.24.2:
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'c:\\programdata\\anaconda3\\lib\\site-packages\\urllib3-1.24.2-py3.7.egg-info\\dependency_links.txt'
Consider using the `--user` option or check the permissions.
I have checked the path what it is giving, c:\\programdata\\anaconda3\\lib\\site-packages\\urllib3-1.24.2-py3.7.egg-info\\dependency_links.txt'
but empty notepad file is there.我检查了它给出的路径, c:\\programdata\\anaconda3\\lib\\site-packages\\urllib3-1.24.2-py3.7.egg-info\\dependency_links.txt'
但记事本为空文件在那里。
Any leads will be helpfull.任何线索都会有所帮助。
As I can see, you don't have admin access.如我所见,您没有管理员访问权限。 That's why pip is not able to write in your system.这就是 pip 无法在您的系统中写入的原因。
You can solve this very easily.你可以很容易地解决这个问题。 There are 2 ways:有2种方式:
pip install boto3 --user
使用pip install boto3 --user
sudo -i
在 windows 中,以管理员身份运行 cmd,在 Linux 中,运行sudo -i
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.