8

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

 1 year ago
source link: https://xugaoxiang.com/2023/03/15/python-setup-py-egg_info-did-not-run-successfully/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

在安装一些依赖库时,碰到了问题,错误提示如下

Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
python setup.py egg_info did not run successfully.
exit code: 1
  1. 检查 pip 是否版本过老

    pip install -U pip
  2. 检查 setuptools 是否安装

    pip install -U setuptools
  3. 检查 ez_setup 是否安装

    pip install ez_setup
  4. 如果上述方法还未解决,可以试着去搜索对应 python 版本的 whl 文件,然后手动安装需要的库

    # 查看python版本
    python -V
    
    # 安装 whl
    pip install *.whl

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK