【解决】python setup.py egg_info did not run successfully

在我使用 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下载就好。

【解决】python setup.py egg_info did not run successfully_第1张图片

你可能感兴趣的:(DeBug,python,开发语言,深度学习)