python:无法打开文件get-pip.py错误2]没有这样的文件或目录

问题描述 投票:4回答:3

当我尝试在CMD中执行此操作时

python get-pip.py

我收到此错误:

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

而文件存储在(get-pip.py)

C:\ Python27 \工具\脚本

python pip installer
3个回答
5
投票

尝试使用脚本(cd)将cd "C:\Python27\Tools\Scripts"添加到文件夹中,或者将此文件夹添加到PATH变量中。


7
投票

对于Linux / Mac,你可以去

curl 'https://bootstrap.pypa.io/get-pip.py' > get-pip.py && sudo python get-pip.py
  1. 获取安装程序
  2. 使用超级用户访问权限执行文件

0
投票

转到此链接 - https://www.liquidweb.com/kb/how-to-install-pip-on-ubuntu-14-04-lts/

对我来说它安装在

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

所以在帖子中有一个错误,就像命令pip --help

不管用。

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

但是你仍然安装了pip。

请享用!

© www.soinside.com 2019 - 2024. All rights reserved.