[英]while installing boto3, getting access error
我正在嘗試在我的 VDI 中安裝 boto3。 但我收到以下錯誤。
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.
我檢查了它給出的路徑, c:\\programdata\\anaconda3\\lib\\site-packages\\urllib3-1.24.2-py3.7.egg-info\\dependency_links.txt'
但記事本為空文件在那里。
任何線索都會有所幫助。
如我所見,您沒有管理員訪問權限。 這就是 pip 無法在您的系統中寫入的原因。
你可以很容易地解決這個問題。 有2種方式:
pip install boto3 --user
sudo -i
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.