ImportError: cannot import name main when running pip --version command in windows7 32 bit

后端 未结 16 1473
余生分开走
余生分开走 2020-11-28 01:28

I\'ve installed the latest python (2.7.9) bundled with pip and setuptools for windows 32-bit. I\'ve tried reinstalling pip but the problem persists.

Here\'s the erro

16条回答
  •  自闭症患者
    2020-11-28 01:55

    try this

    #!/usr/bin/python
    # GENERATED BY DEBIAN
    
    import sys
    
    # Run the main entry point, similarly to how setuptools does it, but because
    # we didn't install the actual entry point from setup.py, don't use the
    # pkg_resources API.i
    try:
        from pip import main
    except ImportError:
        from pip._internal import main
    if __name__ == '__main__':
        sys.exit(main())
    

提交回复
热议问题