Reputation: 627
I ran pip install --user pylint
without getting any error, but I get pylint: command not found
when I try pylint foo.py
although there is a directory /Users/erc/Library/Python/2.7/lib/python/site-packages/pylint
containing what I would guess are all the necessary files (although no pylint.py
but maybe the __main__.py
or __ini__.py
are there for that). Also, I get nothing withwhich pylint
.
What can I try?
Upvotes: 2
Views: 3356
Reputation: 21
I had faced the same issue even though I had pylint as well as pip installed. The issue is because the path is not pointing to the place where these libraries are present. eg: my path - programs/python/python35/ and whereas my pip and pylint were installed in programs/python/python35/Scripts. So when I added the path to environment variable it worked.
Upvotes: 1