I applied this command
pip install --upgrade pip
The package shows error in installing python package:
Collecting pip
Permission denied:
**You are using pip version 9.0.3, however version 19.3.1 is available. You should consider upgrading via the 'pip install
--upgrade pip' command.**
This command is not working in my aws ec2 linux terminal
This command should work
python -m pip install -U pip
If this doesn't work and you get a permission error use this
python -m pip install -U pip --user
In order to upgrade pip
globally (ie for all users), you need sudo
rights:
sudo pip install --upgrade pip
Alternatively, if you don't have sudo
privileges you can still upgrade it for the current user:
pip install --upgrade pip --user
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.