gpt4 book ai didi

python - 无法在 Windows 上安装 Boto3

转载 作者:行者123 更新时间:2023-11-30 22:40:35 26 4
gpt4 key购买 nike

运行 pip install boto3 命令后出现以下异常

C:\boto3-develop>pip install boto3

Collecting boto3 Downloading boto3-1.4.4-py2.py3-none-any.whl (127kB) 100% |████████████████████████████████| 133kB 281kB/s

Collecting jmespath<1.0.0,>=0.7.1 (from boto3) Downloading jmespath-0.9.2-py2.py3-none-any.whl

Collecting s3transfer<0.2.0,>=0.1.10 (from boto3) Downloading s3transfer-0.1.10-py2.py3-none-any.whl (54kB) 100% |████████████████████████████████| 61kB 787kB/s

Collecting botocore<1.6.0,>=1.5.0 (from boto3) Downloading botocore-1.5.26-py2.py3-none-any.whl (3.4MB) 100% |████████████████████████████████| 3.4MB 81kB/s

Collecting docutils>=0.10 (from botocore<1.6.0,>=1.5.0->boto3)
Downloading docutils-0.13.1-py3-none-any.whl (536kB) 100% |████████████████████████████████| 542kB 205kB/s

Collecting python-dateutil<3.0.0,>=2.1 (from botocore<1.6.0,>=1.5.0->boto3) Downloading python_dateutil-2.6.0-py2.py3-none-any.whl (194kB) 100% |████████████████████████████████| 194kB 273kB/s

Collecting six>=1.5 (from python-dateutil<3.0.0,>=2.1->botocore<1.6.0,>=1.5.0->b oto3)
Downloading six-1.10.0-py2.py3-none-any.whl

Installing collected packages: jmespath, docutils, six, python-dateutil, botocor e, s3transfer, boto3

Exception: Traceback (most recent call last): File "c:\program files (x86)\python36-32\lib\site-packages\pip\basecommand.py" , line 215, in main status = self.run(options, args)

File "c:\program files (x86)\python36-32\lib\site-packages\pip\commands\instal l.py", line 342, in run prefix=options.prefix_path,

File "c:\program files (x86)\python36-32\lib\site-packages\pip\req\req_set.py" , line 784, in install **kwargs

File "c:\program files (x86)\python36-32\lib\site-packages\pip\req\req_install .py", line 851, in install self.move_wheel_files(self.source_dir, root=root, prefix=prefix)

File "c:\program files (x86)\python36-32\lib\site-packages\pip\req\req_install .py", line 1064, in move_wheel_files isolated=self.isolated,

File "c:\program files (x86)\python36-32\lib\site-packages\pip\wheel.py", line 345, in move_wheel_files clobber(source, lib_dir, True)

File "c:\program files (x86)\python36-32\lib\site-packages\pip\wheel.py", line 316, in clobber ensure_dir(destdir)

File "c:\program files (x86)\python36-32\lib\site-packages\pip\utils__init__. py", line 83, in ensure_dir os.makedirs(path)

File "c:\program files (x86)\python36-32\lib\os.py", line 220, in makedirs mkdir(name, mode)

PermissionError: [WinError 5] Access is denied: 'c:\program files (x86)\python 36-32\Lib\site-packages\jmespath'

C:\boto3-develop>

最佳答案

确保您以管理员身份运行命令行。缺乏权限通常会阻止 python 软件包的安装。

关于python - 无法在 Windows 上安装 Boto3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42871427/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com