首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >抛出错误

抛出错误
EN

Stack Overflow用户
提问于 2022-11-14 21:16:56
回答 1查看 22关注 0票数 -2

当我试图将Newscatcher安装到Conda虚拟env (Python 3.7.13)中时,它会引发以下错误:我尝试了以下方法;

代码语言:javascript
复制
pip install git+https://github.com/kotartemiy/newscatcher.git

以下是错误;

代码语言:javascript
复制
Collecting git+https://github.com/kotartemiy/newscatcher.git
  Cloning https://github.com/kotartemiy/newscatcher.git to /tmp/pip-req-build-d53hkjlh
  Running command git clone --filter=blob:none --quiet https://github.com/kotartemiy/newscatcher.git /tmp/pip-req-build-d53hkjlh
  Resolved https://github.com/kotartemiy/newscatcher.git to commit b86b1a650241be4e82941319698e01a33c0c01ac
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: requests<3.0.0,>=2.23.0 in ./anaconda3/envs/bot/lib/python3.7/site-packages (from newscatcher==0.2.0) (2.28.1)
Collecting tldextract<3.0.0,>=2.2.2
  Using cached tldextract-2.2.3-py2.py3-none-any.whl (48 kB)
Collecting feedparser<6.0.0,>=5.2.1
  Using cached feedparser-5.2.1.zip (1.2 MB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error in feedparser setup command: use_2to3 is invalid.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

如果有人能解释一下这个错误是什么,我想我可以解决它。任何输入都非常感谢!

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-11-14 22:30:45

您正在尝试安装的模块有点老(3年),但是,在构建过程中安装工具删除支持2to3

试着降低setup tools评级

代码语言:javascript
复制
pip install "setuptools<58.0.0"

然后

代码语言:javascript
复制
pip install newscatcher --upgrade
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/74437928

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档