我能够在全局站点包中安装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中安装。
答案 0 :(得分:2)
我认为问题在于您设置了环境变量AWS_CREDENTIAL_FILE
,但它似乎指向包含私钥而不是AWSAccessKeyId
和AWSSecretKey
值的文件。 / p>
尝试取消设置此环境变量并再次尝试安装。