You can press β¬ (up arrow) on the terminal tab after the installation does not return to the command in which it was started. In this case:
/usr/bin/python -m pip install pylint
Press fn + β¬
(left arrow key) to go to the beginning of the line, then insert the command 'sudo' in front of you (without the quotes, but including the ending space), and press enter to re-run the command as root - it should look like this:
sudo /usr/bin/python -m pip install pylint
You will be prompted to enter a password, then the package will be installed without permission errors.
source share