python - 无法在 Windows 上安装 Boto3

标签 python boto3

运行 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/

相关文章:

python - 了解 Python HTTP 流

amazon-web-services - 预先签名的 POST URL 在本地工作,但不在 Lambda 中

amazon-web-services - 何时使用 S3 API 分页

python - 通过 PRESTO 连接器选择随机数据样本

Python PIL/Pillow - 将图像填充到所需大小(例如 A4)

boto3 - AWS BATCH - SubmitJob 操作 : Job Queue is attached to Compute Environment that can not run Jobs with capability EC2

python - BOTO3:打印特定区域的实例信息

python - Boto3 按时间戳从 Kinesis 流读取

python - 在 Python 中从二进制文件中读取和解释数据

python - 将 python 代码转换为 python Spark 代码