简体   繁体   English

PIP 安装失败,库的语法错误

[英]PIP install failing with Syntax error for library

I am trying to install curator library for Lambda packaging using PIP3.我正在尝试使用 PIP3 为 Lambda 打包安装 curator 库。 For that i am running the command为此,我正在运行命令

pip3 install curator -t ./

I am getting the following error :我收到以下错误:

Collecting curator
  Downloading https://files.pythonhosted.org/packages/0b/5f/d15b6aeae8768120303b058f36a381e4f17df3f55eda716fc76edf4fab80/curator-2.1.tar.gz (385kB)
     |████████████████████████████████| 389kB 5.0MB/s 
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-0jt7crai/curator/setup.py'"'"'; __file__='"'"'/tmp/pip-install-0jt7crai/curator/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-0jt7crai/curator/pip-egg-info
         cwd: /tmp/pip-install-0jt7crai/curator/
    Complete output (6 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-0jt7crai/curator/setup.py", line 14
        except IOError, e:
                      ^
    SyntaxError: invalid syntax
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Is this really a syntax issue or PIP going nuts... I have already upgraded setuptools, pip3, etc. I have downloaded the library and removed the entire except block as well.这真的是语法问题还是 PIP 发疯了...我已经升级了 setuptools、pip3 等。我已经下载了库并删除了整个 except 块。 If there is a way to use that library, I am all for it... Any ideas?如果有一种方法可以使用该库,我完全赞成......有什么想法吗?

尝试这个:

pip3 install elasticsearch-curator

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM