无法使用PIP安装Storm

时间:2019-09-17 07:57:52

标签: python pip

无法安装Storm,同时收到以下错误。

已安装的pip版本如下:

点19.2.3

pip install storm

  Using cached https://files.pythonhosted.org/packages/a7/4c/e5dbc818c432cd80d2e1aa1576f911eda49a3c206c6697db4070f402cda9/storm-0.20.tar.bz2
    ERROR: Command errored out with exit status 1:
     command: /usr/local/opt/python/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/lk/wrg280_17c78l9kysqx26pdc0000gp/T/pip-install-so_kwd18/storm/setup.py'"'"'; __file__='"'"'/private/var/folders/lk/wrg280_17c78l9kysqx26pdc0000gp/T/pip-install-so_kwd18/storm/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 pip-egg-info
         cwd: /private/var/folders/lk/wrg280_17c78l9kysqx26pdc0000gp/T/pip-install-so_kwd18/storm/
    Complete output (8 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/lk/wrg280_17c78l9kysqx26pdc0000gp/T/pip-install-so_kwd18/storm/setup.py", line 5, in <module>
        import ez_setup
      File "/private/var/folders/lk/wrg280_17c78l9kysqx26pdc0000gp/T/pip-install-so_kwd18/storm/ez_setup.py", line 106
        except pkg_resources.VersionConflict, e:
                                            ^
    SyntaxError: invalid syntax
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.```

尝试安装strom时,出现上述错误。

3 个答案:

答案 0 :(得分:3)

Python的软件包storm尚未维护。 2013年发布了最新版本0.20。该项目完全不支持Python 3。

答案 1 :(得分:-2)

它在包装中,语法错误。您需要在上述行中更改逗号(此符号','):

  

文件   “ /private/var/folders/lk/wrg280_17c78l9kysqx26pdc0000gp/T/pip-install-so_kwd18/storm/ez_setup.py”,   第106

private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());

为“ as”,它应类似于:

except pkg_resources.VersionConflict, e:

但是,如果您只是开始项目,请不要使用Storm,因为它的上一次更新是在7年前,目前尚不清楚它是否与python 3兼容。 我不知道您在使用它什么,但是正在不断寻求支持。如果您不确定哪个程序包获得支持,请在以下位置搜索上次实现日期: PyPi library

答案 2 :(得分:-3)

直接从外壳/终端安装可能会有所帮助,而不是在程序中完成。

相关问题