Open safetymonkey opened 6 years ago
I think the problem is related to the pyenv
global default, which still points at /usr/local/bin/pylint
. I have the Working Directory set to %p
(and I've even tried hardcoding it to my project directory) but it looks like it's still using the Global pyenv
versions, not the ones specified in the working directory. If I set the Global version to 2.7.14 (same as the project) the linter begins to work.
Does anybody know from which directory linter-pylint
runs, or have any ideas on how I can get it to call pylint from within the working directory?
Please try pyenv rehash
following configuration works for me:
"linter-pylint":
executablePath: "/Users/<your_username>/.pyenv/versions/3.7.1/bin/pylint"
pythonPath: "/Users/<your_username>/.pyenv/versions/3.7.1/bin/python"
you can find path to your python executable by running in terminal
python -c "import sys; print(sys.executable)"
@sotsugov suggestion worked like a charm.
I had pyenv installed and a pyenv-virtualenv configured, installed pylint but it was still pointing at the global install. Running pyenv rehash
fixed this.
I'm having the same issue. Using the "dynamic" paths won't work:
/Users/<user>/.pyenv/shims/python
/Users/<user>/.pyenv/shims/pylint
Using pyenv rehash
does not solve the issue.
Using specific paths (like below) works, but that's not good because they have to be manually changed for each different pyenv:
/Users/<user>/.pyenv/versions/<pyenv-name>/bin/python
/Users/<user>/.pyenv/versions/<pyenv-name>/bin/python
Any suggestion?
I'm running macOS Sierra. I've installed
pyenv
using Homebrew, andpyenv
has been set to use Python 2.7.14. Pylint is also installed.I've installed linter-pylint and all the dependencies. I have set the executable path to
/Users/<user>/.pyenv/shims/pylint
and the Python path to/Users/<user>/.pyenv/shims/python
as per above.When I attempt to run the linter, I see the following error in the developer console:
Sure enough, there is no
/usr/local/opt/python/bin/python2.7
, but I have no idea whylinter-pylint
is looking there.Running
pylint
directly from my project directory has no issues:Any ideas what's going on here?