简体   繁体   中英

Where exactly is pip installed?

I know the newer versions of python come with pip installed. 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? Namely this:

The program 'pip' is currently not installed. You can install it by typing: sudo apt-get install python-pip

I again run 'sudo apt-get install python-pip' (for python 2.7) which installs version 1.5. So i try pip install -U pip and it downloads the package marked 7.1 and succesfully installs. However on checking the version again it is still 1.5

You can install pip with the help of get-pip.py script. you can download this script and execute on your terminal "python get-pip.py". it will install pip on your system. you can also use curl to download get-pip.py script- curl " https://bootstrap.pypa.io/get-pip.py " -o "get-pip.py".

To verify the installation you can use- pip --help pip -V

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM