Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pip installed pylint cannot be found

There's a lot of questions around this, so it might be a duplicate, but I can't find a solution, so here goes..

I want to use pylint with atom. If I use the recommended pip install --user pylint it seems to work but atom can't find and neither can I; which pylint and whereis pylintreturn nothing. The same thing goes if I use pip3.

If I go against wisdom and use sudo pip install pylint it is found but now I get a different error with atom: unable to determine environment.

Any suggestions?

like image 311
jorgen Avatar asked Dec 28 '17 22:12

jorgen


1 Answers

If which pylint does not find the executable but the package is installed, it is not in your PATH. Uninstall pylint you have installed with sudo and reinstall it as user, now run

$ PATH=$HOME/Library/Python/2.7/bin:$PATH which pylint

It should be found now. After you have verified pylint executable is accessible, edit your .bash_profile and add the two lines at the bottom:

PATH="${HOME}/Library/Python/2.7/bin:${PATH}"
export PATH
like image 137
hoefling Avatar answered Oct 27 '22 20:10

hoefling