2

我正在尝试使用 PIP3 为 Lambda 打包安装 curator 库。为此,我正在运行命令

pip3 install curator -t ./

我收到以下错误:

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.

这真的是语法问题还是 PIP 疯了...我已经升级了 setuptools、pip3 等。我已经下载了库并删除了整个 except 块。如果有办法使用该库,我完全赞成......有什么想法吗?

4

1 回答 1

4

尝试这个:

pip3 install elasticsearch-curator
于 2019-12-18T10:05:39.210 回答