如何在 Windows 上为 python 安装 boto 库?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14351373/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-18 11:09:59  来源:igfitidea点击:

How can i install boto library on windows for python?

pythoninstallboto

提问by Iron Hoang

I'm using windows 7system, and pythonprogramming. How can i install botolibrary on windows7?

我正在使用windows 7系统和python编程。我如何安装botowindows7

采纳答案by Ajay Nair

Downlload the boto package to your computer from say: http://boto.googlecode.com/files/boto-2.6.0.tar.gz

从以下位置将 boto 包下载到您的计算机:http://boto.googlecode.com/files/boto-2.6.0.tar.gz

Unzip it. Traverse to the unzipped folder using CMD prompt.

解压它。使用 CMD 提示遍历到解压后的文件夹。

and run the following command:

并运行以下命令:

setup.py install

Verify the installation by trying to import boto in python.

通过尝试在 python 中导入 boto 来验证安装。

If you have pip installed you can run:

如果您安装了 pip,则可以运行:

pip install -U boto

EDIT: if setup.py install is not recognized try python setup.py install

编辑:如果 setup.py install 不被识别,请尝试 python setup.py install

回答by Althaf Hameez

The answer is given in the boto repository on github

答案在github上boto存储库中给出

$ git clone git://github.com/boto/boto.git
$ cd boto
$ python setup.py install

回答by Jon Kartago Lamida

Actually the answer of this question is very straight forward if you could search for a while. But I assume you really new to python. I will suggest to use some python package manager. One example is pip http://www.pip-installer.org/en/latest/. After finished the installation just run this inside command line

实际上,如果您可以搜索一段时间,这个问题的答案非常简单。但我假设你对 python 真的很陌生。我会建议使用一些 python 包管理器。一个例子是 pip http://www.pip-installer.org/en/latest/。安装完成后只需在命令行中运行

pip install boto

To check installation result open python console and run

要检查安装结果打开 python 控制台并运行

import boto

If no error messages then you have successfully install boto

如果没有错误消息,那么您已成功安装 boto