我正在为Django Server设置一个aws服务器。我已经成功安装了python3.5.1,pip和django。
在aws文档之后我运行以下命令:
pip install awsebcli
我收到此错误:
Collecting awsebcli
Using cached awsebcli-3.12.4.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-1eejewt6/awsebcli/setup.py", line 46, in <module>
long_description=open('README.rst').read() + open('CHANGES.rst').read(),
File "/usr/lib/python3.5/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 4092: ordinal not in range(128)
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-1eejewt6/awsebcli/
尝试打开并读取rst文件时发生错误。
Eb回购可以找到here。我尝试在包中修复错误并手动运行但没有成功。为什么官方回购中有错误?我错过了什么吗?
我手动安装了位于here的旧版本(3.10.0),这个工作正常。
在版本> = 3.10.3的awsebcli软件包中,在第156行上有一个unicode字符'ã'的CHANGES.rst中添加了一些更改。这会在某些操作系统版本中安装时引起上述错误。
如果需要awsebcli版本> = 3.10.3,则手动安装包,直到aws没有正式解决方案。
关注如何手动安装软件包的this answer。
安装之前删除CHANGES.rst文件中的unicode字符。它会工作正常。
错误在changes.rst和/或自述文件中。它们不是安装所必需的。所以打开文件,删除其内容并保存。通过转到文件夹并执行python setup.py install
手动安装它