python setup.py egg_info did not run successfully.

在安装emit的时候遇到以下报错

Collecting emit
  Using cached emit-0.4.0.tar.gz (13 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [51 lines of output]
      running egg_info

解决办法:按顺序运行以下代码【一条都不能少】

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

最终效果

python setup.py egg_info did not run successfully._第1张图片

你可能感兴趣的:(常见报错,python,python)