Closed StevenMapes closed 5 years ago
Hi @StevenMapes, have you set an interpreter for the PyCharm project? If yes, is it the same where PyLint is installed?
Ah no, it's using a VENV whereas pylint is installed globally. Does it need to be installed into the venv then?
Yep, I should probably make it more clear but, unfortunately, PyLint must be installed in the same environment that is used for the PyCharm project.
@leinardi are there any particular reasons why pylint must be in the same env? I don't see a point in installing pylint in every env I use (dozens of them).
Yes, the reason is that Pylint will look for the dependencies of the code that is analyzing in the same environment where it is executed so, if you run it on the system environment, you must have there all the dependencies of all your project, which can be very tricky if you need different versions of the same module for different projects.
@leinardi thanks for the explanation, makes sense.
I can run pylint installed with pipx from the command line. I understand it might be better to install it in the same venv as the project, but it can be run never the less. Can we make it work for the plugin as well?
I am facing the same problem in https://github.com/leinardi/pylint-pycharm/issues/89. Could you please provide some suggestions?
I'm having the same problem.
Pylint is definitely installed in my pyenv virtual environment (also the project interpreter)
I am using that location as the path to the executable
which I have confirmed exists
But still, this error:
Pylint version: 2.1.1
Observed Results:
Failure: executable "/usr/local/bin/pylint" not found
Expected Results:
Ok
Debugging
Confirm pylint location
Confirm pylint runs