Command "python setup.py egg_info" failed with error code 1

解决方法:

pip install --upgrade setuptools
python -m pip install --upgrade pip

ImportError: cannot import name main

sudo vim /usr/bin/pip

把下面的三行

    from pip import main
    if __name__ == '__main__':
        sys.exit(main())

换成下面的三行

    from pip import __main__
    if __name__ == '__main__':
        sys.exit(__main__._main())

 

posted on 2019-05-09 16:17  gris  阅读(86)  评论(0编辑  收藏  举报

导航