解决python setup.py egg_info did not run successfully.问题

这篇具有很好参考价值的文章主要介绍了解决python setup.py egg_info did not run successfully.问题。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

在安装pycurl库时遇到了这个问题:

pip install pycurl
Collecting pycurl
  Using cached pycurl-7.45.2.tar.gz (234 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 10
  ╰─> [1 lines of output]
      Please specify --curl-dir=/path/to/built/libcurl
      [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. 

在搜索之后猜测是不是版本不匹配问题,先升级了pip包:

pip install --upgrade pip
pip install --upgrade setuptools
pip install ez_setup

再重新pip install pycurl还是不行,又尝试了以下命令:

pip install pycurl==7.43.0.5 -i "https://mirrors.bfsu.edu.cn/pypi/web/simple/"

这次可以了,成功安装pycurl库之后运行结果是这样的:

Looking in indexes: https://mirrors.bfsu.edu.cn/pypi/web/simple/
Collecting pycurl==7.43.0.5
  Downloading https://mirrors.bfsu.edu.cn/pypi/web/packages/b9/21/7b0db498334b552094dc72960fb2e528699952c953652b585f0b3dd88c79/pycurl-7.43.0.5-cp37-cp37m-win_amd64.whl (1.7 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.7/1.7 MB 504.6 kB/s eta 0:00:00
Installing collected packages: pycurl
Successfully installed pycurl-7.43.0.5

 文章来源地址https://www.toymoban.com/news/detail-858482.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)
  • 已解决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)
  • 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)
  • 【已解决】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)
  • MAC安装mysqlclient失败,× Getting requirements to build wheel did not run successfully.│ exit code: 1╰─

    问题: 在使用django项目安装mysqlclient时出现以下错误: 解决方案: 1、先去登录brew官网: macOS(或 Linux)缺失的软件包的管理器 — Homebrew 复制以下代码,到mac终端运行: /bin/bash -c \\\"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\\\" 安装好后根据提示运行一下两端

    2024年02月14日
    浏览(29)
  • Docker运行报runc did not terminate successfully: exit status 127: unknown

    问题现象: 执行docker-compose up -d 报错误: ERROR: for gitlab  Cannot start service gitlab: failed to create shim task: OCI runtime create failed: unable to retrieve OCI runtime error (open /run/containerd/io.containerd.runtime.v2.task/moby/ea2ca9eebb54f609c8dd0083c802bd9d75f1755bfe6c72a38cf4a6a83df2bd11/log.json: no such file or directory): run

    2024年02月11日
    浏览(35)

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

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

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

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

二维码1

领取红包

二维码2

领红包