AWS EB CLI安装失败,显示“ python setup.py egg_info”失败,错误代码为“ 1”

时间:2018-07-27 16:51:39

标签: python amazon-web-services pip elastic-beanstalk ebcli

我正在尝试在虚拟环境中安装awsebcli,如下所示:

var columnValues = [
   ["June 2018","May 2018", "March 2018", "December 2017", "July 2017", "June 2017"],
   ["May 2018", "April 2018", "February 2018", " November 2017", "June 2017", "May 2017"],
   ["April 2018", "March 2018", " January 2017", "October 2017", "May 2017", "April 2017"]
];

function alterColumn(grp) {
  var sel = document.getElementById('tblBody').getElementsByTagName('td');
  var k = 0;  grp = Number(grp);  
  for (var i=0; i<sel.length; i++) {
    if (sel[i].className == 'alt') { sel[i].innerHTML = columnValues[grp][k]; 
k++; }}}

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

pip install awsebcli --upgrade --user

我正在使用Arch Linux。我在virtualenv中安装了这些软件包:

 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/

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

1 个答案:

答案 0 :(得分:0)

仅使用python2使用virtualenv会有所帮助。