我正在尝试使用PIP3安装用于Lambda包装的库库。为此,我正在运行命令
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等。我已经下载了该库,并删除了除块以外的所有内容。如果有一种使用该库的方法,我将全力以赴...有什么想法吗?
答案 0 :(得分:2)
尝试一下:
pip3 install elasticsearch-curator