当前位置:   article > 正文

pip install 报错Command “python setup.py egg_info“ failed with error code 1_command "python setup.py egg_info" failed with err

command "python setup.py egg_info" failed with error code 1 opencv

【问题】

pip3 install  opencv-python报错

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-djn6c2bj/opencv-python/

【解决】

更新 setuptools 和 pip

  1. #运行以下命令更新
  2. pip install --upgrade setuptools
  3. python -m pip install --upgrade pip
  4. #因为我装了python2 又装了python3,要更新python3的,所以运行了下面的命令
  5. pip3 install --upgrade setuptools
  6. python3 -m pip install --upgrade pip

【参考】

https://blog.csdn.net/weixin_43721369/article/details/86700473

本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号