python3
sudo apt-get install python3-pip
python2
sudo apt-get install python-pip
If it still does not work, follow the steps below
Reason: The -with-secure-path option was added when compiling sudo.
Solution: add an alias to the environment configuration file
(1) vi ~/.bashrc
Add the following content:
alias sudo=’sudo env PATH=$PATH’
(2) source ~/.bashrc
Similar Posts:
- linux sudo java : command not found
- ubuntu18.04 Start Android StudioKVM is required to run this AVD ./dev/kvm device: permission denied.
- Python compiles and installs under Linux and reports an error: makefile: 1141: install
- [How to Solve] ImportError: No module named MySQLdb
- EnvironmentError: mysql_config not found
- Centos7 Install virtualenv Error bash: virtualenv: command not found…
- Solution to fatal error in launcher: unable to create process using ‘”‘In PIP installation
- [Solved] Could not install packages due to an Environment Error: [Errno 13] Permission denied
- Sudo: Port: command not found Error [How to Solve]
- [Solved] Python3 operate pymongo error: pymongo.errors.ConfigurationError