8000 cpplint: command not found · Issue #98 · cpplint/cpplint · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

cpplint: command not found #98

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sig 8000 n up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kaczorrrro opened this issue May 16, 2019 · 2 comments
Closed

cpplint: command not found #98

kaczorrrro opened this issue May 16, 2019 · 2 comments

Comments

@kaczorrrro
Copy link

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?

@kaczorrrro
Copy link
Author

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

@tkruse
Copy link
Contributor
tkruse commented May 16, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0