简体   繁体   English

无法使用PIP安装Storm

[英]Unable to install Storm using PIP

Unable to install storm receiving the following error while doing so. 这样做无法安装Storm并收到以下错误。

Installed pip version as follows: 安装的pip版本如下:

pip 19.2.3 点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.```

When trying to install strom i am receiving the above error. 尝试安装strom时,出现上述错误。

The package storm for Python has not been maintained. 尚未维护Python的软件包storm The latest version 0.20 is released at 2013. The project doesn't support Python 3 at all. 2013年发布了最新版本0.20。该项目完全不支持Python 3。

It's in package, syntax error. 它在包装中,语法错误。 You need to change comma(this symbol ' , ') in said line: 您需要在上述行中更改逗号(此符号','):

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

except pkg_resources.VersionConflict, e:

to 'as', it should look like: 为“ as”,它应类似于:

except pkg_resources.VersionConflict as e:  # in package there is ','

But if you are just starting project, DO NOT use storm, as it's last update was nearly 7 years ago and it's not clear if it's compatible with python 3. I don't know what you are using it for but search for something with constant support. 但是,如果您只是开始项目,请不要使用Storm,因为它的最新更新是在7年前,并且尚不清楚它是否与python 3兼容。我不知道您在使用它什么,而是在搜索常量时使用支持。 If you are not sure which package is getting support search for last realease date on: PyPi library 如果您不确定哪个程序包获得支持,请在以下位置搜索上一发布日期: PyPi库

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

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

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