[英]Where exactly is pip installed?
I know the newer versions of python come with pip installed. 我知道安装了pip的python新版本。 So 'sudo apt-get install python3-pip' gives me that it is installed saying that it is the latest version, then why does 'pip install django' gives an error saying pip is not insatlled?
所以'sudo apt-get install python3-pip'告诉我它是最新版本,所以为什么'pip install django'会给出一个错误,指出pip没有安装? Namely this:
即:
The program 'pip' is currently not installed. 当前未安装程序“ pip”。 You can install it by typing: sudo apt-get install python-pip
您可以通过键入以下命令进行安装:sudo apt-get install python-pip
I again run 'sudo apt-get install python-pip' (for python 2.7) which installs version 1.5. 我再次运行“ sudo apt-get install python-pip”(对于python 2.7),该版本安装了1.5版。 So i try pip install -U pip and it downloads the package marked 7.1 and succesfully installs.
所以我尝试使用pip install -U pip并下载标记为7.1的软件包并成功安装。 However on checking the version again it is still 1.5
但是再次检查版本仍为1.5
You can install pip with the help of get-pip.py script. 您可以在get-pip.py脚本的帮助下安装pip。 you can download this script and execute on your terminal "python get-pip.py".
您可以下载此脚本并在终端“ python get-pip.py”上执行。 it will install pip on your system.
它将在您的系统上安装pip。 you can also use curl to download get-pip.py script- curl " https://bootstrap.pypa.io/get-pip.py " -o "get-pip.py".
您还可以使用curl下载get-pip.py脚本-curl“ https://bootstrap.pypa.io/get-pip.py ” -o“ get-pip.py”。
To verify the installation you can use- pip --help pip -V 要验证安装,可以使用-pip --help pip -V
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.