You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Ubuntu 18, after running pip install cpplint (and successful installation) I still get this error cpplint: command not found
Is the instruction missing something?
The text was updated successfully, but these errors were encountered:
Not sure why this happened to me, but it turns out cpplint installed itself into ~/.local/ directories, and by default ~/.local/bin is not included in PATH. To fix just add: export PATH=$PATH:~/.local/bin/
to your ~/.bashrc
I believe installation to ~/.local would be a feature of pip on Linux when running with the --user option, like pip install --user cpplint.
And indeed that is typically not on the PATH. See pypa/pip#3813
It would be unusual if in your case pip did this without the --user option, though maybe there are other ways such as having a PIP_USER environment variable to the same effect (See pypa/pip#1668).
In any case I believe cpplint is entirely passive about this, so if this was a bug, it would be a pip bug, closing this issue because of it.
But thanks for reporting anyway, others may be confused by the same thing happening.
On Ubuntu 18, after running
pip install cpplint
(and successful installation) I still get this errorcpplint: command not found
Is the instruction missing something?
The text was updated successfully, but these errors were encountered: