在我使用 conda 安装fairseq 出现了如下问题
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
D:\applications\anaconda\anaconda\lib\site-packages\setuptools\_distutils\dist.py:262: UserWarning: Unknown distribution option: 'install_requires'
warnings.warn(msg)
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: invalid command 'egg_info'
[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.
跟着报错改了很久也没用,随后发现原因出在conda身上。
不要使用conda,直接使用原生的python下载就好。文章来源:https://www.toymoban.com/news/detail-618601.html
文章来源地址https://www.toymoban.com/news/detail-618601.html
到了这里,关于【解决】python setup.py egg_info did not run successfully的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!