AWS EB CLI 安装失败 "python setup.py egg_info" failed with error code 1”

AWS EB CLI installation fails with "python setup.py egg_info" failed with error code 1"

我正在尝试像这样在 virtualenv 中安装 awsebcli:

pip install awsebcli --upgrade --user

安装失败,出现以下错误:

 Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-dpxu8m6m/awsebcli/setup.py", line 48, in <module>
        long_description=open('README.rst').read() + open('CHANGES.rst').read(),
      File "/home/rashik/Documents/Bhalo/python/lib/python3.6/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 7198: ordinal not in range(128)

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-dpxu8m6m/awsebcli/

我正在使用 arch linux。我在我的 virtualenv 中安装了这些软件包:

awscli           1.15.66  
blessed          1.15.0   
botocore         1.10.65  
cement           2.10.12  
certifi          2018.4.16
chardet          3.0.4    
colorama         0.3.9    
docker-py        1.10.6   
docker-pycreds   0.3.0    
dockerpty        0.4.1    
docopt           0.6.2    
docutils         0.14     
idna             2.7      
jmespath         0.9.3    
pathspec         0.5.6    
pip              18.0     
pyasn1           0.4.4    
python-dateutil  2.7.3    
PyYAML           3.13     
requests         2.19.1   
rsa              3.4.2    
s3transfer       0.1.13   
semantic-version 2.6.0    
setuptools       40.0.0   
six              1.11.0   
texttable        1.4.0    
urllib3          1.23     
wcwidth          0.1.7    
websocket-client 0.48.0   
wheel            0.31.1 

注意:此问题的 None 个答案 - PIP Install Numpy throws an error "ascii codec can't decode byte 0xe2" 适合我。

使用只有 python2 的 virtualenv 有帮助。