我能够在全局站点包中安装 boto==2.9.0,但是当我尝试在 virtualenv 中安装它时,它失败并出现以下错误。
Running setup.py egg_info for package boto
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/home/khanio/.virtualenvs/test-boto/build/boto/setup.py", line 37, in <module>
from boto import __version__
File "boto/__init__.py", line 43, in <module>
config = Config()
File "boto/pyami/config.py", line 73, in __init__
self.load_credential_file(full_path)
File "boto/pyami/config.py", line 84, in load_credential_file
self.readfp(c_data)
File "/usr/lib/python2.7/ConfigParser.py", line 324, in readfp
self._read(fp, filename)
File "/usr/lib/python2.7/ConfigParser.py", line 546, in _read
raise e
ConfigParser.ParsingError: File contains parsing errors: <???>
[line 2]: '-----BEGIN RSA PRIVATE KEY-----\r\n'
.......
我在 Mountain Lion 和 Ubuntu 12.04 上尝试了相同的操作,两者都安装了 python 2.7.4,并且在两者上都无法在 virtualenv 中安装。