我正在尝试从源代码/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/