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

2019-02-23 20:08发布

when I am trying to execute this in CMD

python get-pip.py

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

while the file store in (get-pip.py)

C:\Python27\Tools\Scripts

3条回答
冷血范
2楼-- · 2019-02-23 20:48

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

查看更多
干净又极端
3楼-- · 2019-02-23 20:56

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
查看更多
Lonely孤独者°
4楼-- · 2019-02-23 21:00

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!

查看更多
登录 后发表回答