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

这篇具有很好参考价值的文章主要介绍了【解决】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.,DeBug,python,开发语言,深度学习文章来源地址https://www.toymoban.com/news/detail-618601.html

到了这里,关于【解决】python setup.py egg_info did not run successfully的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • python setup.py egg_info did not run successfully. Preparing metadata (pyproject.toml) did not run

    前提条件: 首先检查Python是否加入环境变量中。 以下是在Windows系统中将Python添加到环境变量中的步骤: 1.打开“控制面板”,然后单击“系统和安全”。 2.单击“系统”。 3.单击“高级系统设置”。 4.单击“环境变量”。 5.在“系统变量”下,找到名为“Path”的变量,并双

    2024年02月09日
    浏览(32)
  • error: subprocess-exited-with-error × python setup.py egg_info did not run successfully.报错

    报错的具体信息: 网上找的改正方法是: pip install --upgrade setuptools 但是不行,最后仔细看了报错信息,谜底就在谜面上啊!Here is how to fix this error in the main use cases:这一行给出了修补方法,我直接简单粗暴整最后一个。 在环境中加入SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True这

    2024年01月19日
    浏览(38)
  • Command “python setup.py egg_info“ failed with error code 1 in /tmp/pip-build-... 解决方法

    今天在虚拟机上配置Python的环境,安装pylint的时候报错: 一开始以为是pip不够新,于是更新了一下pip: 提示更新成功,但安装pylint依旧报同样的错。 仔细阅读黄字提示后发现:不应该使用sudo,去掉sudo后尝试安装: 果然就没有问题了。

    2024年02月12日
    浏览(35)
  • 解决Command “python setup.py egg_info“ failed with error code 1 in C:\Users\AppData\

    目录 解决Command \\\"python setup.py egg_info\\\" failed with error code 1 in C:UsersAppData 错误原因 解决方法 1. 确保安装了正确的依赖项 2. 更新pip和setuptools 3. 检查Python环境 4. 清理缓存 5. 手动安装依赖包 6. 检查错误信息 总结 在Python开发过程中,有时我们会遇到一些错误信息,其中之一是​

    2024年02月05日
    浏览(33)
  • 【问题记录】Command “python setup.py egg_info“ failed with error code 1 in /tmp/pip-build-*

            在Linux中使用pip安装命令时出现报错:Command “python setup.py egg_info“ failed with error code 1 in /tmp/pip-build-*         安装了不适合当前Python版本的pip,例如Python3.5安装了带有f-字符串(Python3.5后才支持的一种新的增强型字符串格式化方式)代码的pip         方法一:更新

    2024年02月16日
    浏览(36)
  • 已解决python setup.py bdist_wheel did not run successfully.

    已解决(pip安装第三方模块lxml模块报错)Building wheels for collected packages: lxml Building wheel for lxml (setup.py) … error error: subprocess-exited-with-error python setup.py bdist_wheel did not run successfully. note: This error originates from a subprocess,and is likely not a problem with pip. ERROR: Failed building wheel for lxml n

    2024年01月16日
    浏览(32)
  • python setup.py bdist_wheel did not run successfully

    安装webrtcvad时,报错python setup.py bdist_wheel did not run successfully 安装微软的VS Install,把你的操作系统包和改装的库装上 直接下载源码然后在源码目录

    2024年02月12日
    浏览(29)
  • 【已解决】pip subprocess to install build dependencies did not run successfully.

    不要输入版本号。 例如 pandas==1.0.5,安装这个的时候就会出现这个问题,但是当我去掉版本号,只用命令conda install pandas 来进行安装时就不会产生这个报错。同理scipy==1.5.0也是。 用了将近一天的时间来配置环境,尝试了各种方法,结果竟是这样解决就行了,我是废物。

    2024年02月12日
    浏览(39)
  • python setup.py install 报错的解决

    可能是由于 Windows 的应用沙箱安全性限制导致的。在某些情况下,即使以管理员身份运行 PowerShell,也无法在受限的目录中创建或修改文件。 解决此问题的一种方法是选择一个不受限制的目录来安装 Python 包。你可以使用 --user 标志将包安装到用户目录而不是系统目录中。尝试

    2024年02月07日
    浏览(35)
  • 成功解决ERROR: No .egg-info directory found in C:\Users\admin\AppData\Local\Temp\pip-pip-egg-info

    由于最近在新电脑上使用python下载第三方库时经常遇到这个报错:ERROR: No .egg-info directory found in C:UsersadminAppDataLocalTemppip-pip-egg-info-XXXX。 为此,我尝试了把Libsite-packages中的除了pip外所有的文件夹都删除,然后再下载第三方库,这样操作确实不报错了,但又引发了新的问题

    2024年02月15日
    浏览(38)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包