python: can't open file get-pip.py error 2] no such file or directory

后端 未结 3 1102
無奈伤痛
無奈伤痛 2021-01-03 01:06

When I am trying to execute this in CMD

python get-pip.py

I am getting this error:

python: can\'t open file ge         


        
相关标签:
3条回答
  • 2021-01-03 01:48

    Go to this link - https://www.liquidweb.com/kb/how-to-install-pip-on-ubuntu-14-04-lts/

    For me it installed in

    vagrant@vagrant-ubuntu-trusty-64:/vagrant$ which pip /usr/local/bin/pip

    So there is a mistake in the post as the command pip --help

    will not work.

    vagrant@vagrant-ubuntu-trusty-64:/vagrant$ pip --help -bash: /usr/bin/pip: No such file or directory

    But you still have pip installed.

    Enjoy!

    0 讨论(0)
  • 2021-01-03 01:56

    Try to either cd into folder with script (cd "C:\Python27\Tools\Scripts") or add this folder to your PATH variable.

    0 讨论(0)
  • 2021-01-03 02:06

    For Linux/Mac, you can go for

    curl 'https://bootstrap.pypa.io/get-pip.py' > get-pip.py && sudo python get-pip.py
    
    1. Fetching installer
    2. Executing file with superuser access
    0 讨论(0)
提交回复
热议问题