【问题标题】:How to install Python Catalyst on Python 3.7, getting error?如何在 Python 3.7 上安装 Python Catalyst,出现错误?
【发布时间】:2020-09-15 12:34:29
【问题描述】:
(catalyst) C:\Users\deliseev\Documents\Pyhon>pip install enigma-catalyst matplotlib
Collecting enigma-catalyst
  Using cached enigma-catalyst-0.5.21.tar.gz (767 kB)
Collecting matplotlib
  Using cached matplotlib-3.2.1-cp36-cp36m-win_amd64.whl (9.2 MB)
Requirement already satisfied: pip>=7.1.0 in c:\programdata\anaconda3\envs\catalyst\lib\site-packages (from enigma-catalyst) (20.0.2)
Collecting setuptools==38.5.1
  Using cached setuptools-38.5.1-py2.py3-none-any.whl (489 kB)
Collecting Logbook==0.12.5
  Using cached Logbook-0.12.5.tar.gz (166 kB)
    **ERROR: Command errored out with exit status 1:
     command: 'C:\ProgramData\Anaconda3\envs\catalyst\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\deliseev\\AppData\\Local\\Temp\\pip-install-3jmpw5h7\\Logbook\\setup.py'"'"'; __file__='"'"'C:\\Users\\deliseev\\AppData\\Local\\Temp\\pip-install-3jmpw5h7\\Logbook\\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 'C:\Users\deliseev\AppData\Local\Temp\pip-install-3jmpw5h7\Logbook\pip-egg-info'
         cwd: C:\Users\deliseev\AppData\Local\Temp\pip-install-3jmpw5h7\Logbook\
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\deliseev\AppData\Local\Temp\pip-install-3jmpw5h7\Logbook\setup.py", line 57, in <module>
        from setuptools import setup, Extension, Feature
    ImportError: cannot import name 'Feature'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.**

正如我从错误中看到的那样,它与 setuptools 存在一些问题,但已成功安装在 pevios 行中 从 setuptools 导入设置、扩展、功能 ImportError: 无法导入名称'Feature'

(base) C:\Users\deliseev>python --version
Python 3.7.6

【问题讨论】:

  • 将 Python 版本更改为 3.6.10 - 结果相同

标签: python catalyst


【解决方案1】:

设法更改 setuptools 的版本,重新启动

pip3 install setuptools==45
pip install enigma-catalyst matplotlib

这里描述了问题 https://github.com/pypa/setuptools/issues/2017

【讨论】:

    猜你喜欢
    • 2021-05-21
    • 2020-07-02
    • 2019-07-26
    • 2020-02-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-11-15
    • 2018-12-09
    相关资源
    最近更新 更多