无法在python3中安装Boto [英] Unable to install boto in python3

查看:129
本文介绍了无法在python3中安装Boto的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am trying to install boto from the source code / pypi, but I am unable to install it using python 3.2. Why is it failing?

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:

is Python 2 syntax. From the README:

如果您有兴趣使用Python 3.x试用boto,请查看 neo 分支.目前正在积极开发中,目标是可在Python 2.6、2.7和3.x中运行的boto版本.并非所有功能都可以正常运行,但是很多功能都可以运行,如果您是Python 3.x的活跃用户,那么值得一看.

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.

这篇关于无法在python3中安装Boto的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆