python - 无法在python3中安装boto

标签 python python-3.x boto

我正在尝试从源代码/pypi 安装 boto,但我无法使用 python 3.2 安装它。为什么会失败?

c:\boto>..\Python32\python.exe setup.py install
Traceback (most recent call last):
  File "setup.py", line 35, in <module>
    from boto import __version__
  File "c:\boto\boto\__init__.py", line 26, in <mod
ule>
    from boto.pyami.config import Config, BotoConfigLocations
  File "c:\boto\boto\pyami\config.py", line 185
    print s.getvalue()
          ^
SyntaxError: invalid syntax

最佳答案

print s.getvalue()

是 Python 2 语法。来自 README:

If you are interested in trying out boto with Python 3.x, check out the neo branch. This is under active development and the goal is a version of boto that works in Python 2.6, 2.7, and 3.x. Not everything is working just yet but many things are and it's worth a look if you are an active Python 3.x user.

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

相关文章:

python - Numpy:索引 3D 数组,最后一个轴的索引存储在 2D 数组中

python - 使用 Python 在方法中执行 execfile()

Python dict to select 函数运行所有这些

python - 如何在 Python 中从嵌套列表创建字典?

python - s3 存储桶中的 utf-8 文件名

python - 如果 AWS 实例没有使用 Python 关联的名称标签,则无法打印 "Unknown"

python - 根据多个条件乘以 pandas 列

python - 几个测试的单元测试设置/拆卸

python - 为什么 Tkinter 的 askdirectory() 在 Windows 上返回正斜杠?

python - 使用 crond 运行时,boto 与 AWS 的连接挂起