I get an error when I put a Python plugin in Visual Studio Code under the pyenv environment

Event

If you put the Python plugin in Visual Studio Code under pyenv environment on mac

Error Linter pylint is not installed

Is displayed and Linting does not work well. Also, the display of completion candidates is different from expected.

It feels like looking at setting.json, the Python Path that VS Code goes to read should be set to the location called by the python command, but for some reason I went to read / usr / bin / python It seems that it will end up.

Solution

Open Preferences> Setting and go to JSON on the USER SETTING tab

    "python.pythonPath": "Path set in pyenv(e.g. /User/user/.pyenv/shims/python)"

Added

The solution for the time being, but now it works. (The cause is unspecified, maybe it is because the pyenv setting is written in bash_profile?)

environment

Recommended Posts

I get an error when I put a Python plugin in Visual Studio Code under the pyenv environment
I get an error when I put opencv in pyautoGUI
In the Chainer tutorial, I get an error when importing a package. (mock)
When I get a chromedriver error in Selenium
Create a Python development environment in 10 minutes (Mac OS X + Visual Studio Code)
[Python] I want to know the variables in the function when an error occurs!
I got an error when I put opencv in python3 with Raspberry Pi [Remedy]
A note I was addicted to when running Python with Visual Studio Code
I get an Import Error in Python Beautiful Soup
When you get an error in python scraping (requests)
I get an error when I try to raise Python to 3 series using pyenv on Catalina
Set up a Python development environment with Visual Studio Code
Enable the virtualenv Python virtual environment for Visual Studio Code
Do something like a Python interpreter in Visual Studio Code
Check the argument type annotation when executing a function in Python and make an error
I got an AttributeError when mocking the open method in python
Try to create a python environment with Visual Studio Code & WSL
When I get an error with Pylint in Atom on Windows
I get a can't set attribute when using @property in python
Get the formula in an excel file as a string in Python
Try it when Visual Studio Code can't load a Python module
I got an SSL Error when I installed Anaconda in a new environment, so I solved it (Windows10, Anaconda3-2019.10)
I get an OS Error: [Errno 8] Exec format error when running a Flask application with a python command
When I get an error with PyInstaller
Get the EDINET code list in Python
How to hide the command prompt when running python in visual studio 2015
Create a Python development environment on Windows (Visual Studio Code remote WSL).
I get a Python No module named'encodings' error with the aws command
[Python] Get the files in a folder with Python
When I name the file flask.py in Flask, I get Import Error: cannot import name'Flask'
I want to use Python in the environment of pyenv + pipenv on Windows 10
Build Python development environment with Visual Studio Code
I stumbled on the character code when converting CSV to JSON in Python
Get the caller of a function in Python
Time when terminal disappears in Visual Studio Code
Install the python package in an offline environment
I get a strange window when I use the open directory dialog in Tkinter
A complete guidebook to using pyenv, pip and python in an offline environment
What to do if you get an error when installing python with pyenv
Settings for Python coding in Visual Studio Code
I tried to build an environment with WSL + Ubuntu + VS Code in a Windows environment
What to do if you get an error when importing matplotlib in Python (Mac)
I get a java.util.regex.PatternSyntaxException when splitting a string in PySpark
A memorandum when writing experimental code ~ Logging in python
I get an error when trying meinheld + WebSocket + mongodb
BigQuery-If you get a Reason: responseTooLarge error in Python
Python development environment with Windows + Anaconda3 + Visual Studio Code
Japanese output when dealing with python in visual studio
I made a class to get the analysis result by MeCab in ndarray with python
When I installed python on macOS and used it, I got an error when I put an https connection
When creating a pipenv environment, I got addicted to "Value Error: Not a valid python path"
Solution if the module is installed in Python but you get an error in Jupyter notebook
What to do if you get an error when running "certbot renew" in CakePHP environment
I got an error in vim and zsh in Python 3.7 series
Get the number of specific elements in a python list
I tried "How to get a method decorated in Python"
How to get the last (last) value in a list in Python
Get a clean Python development environment with pyenv + pipx + Poetry
Build a Python environment with WSL + Pyenv + Jupyter + VS Code
I got an error when I tried to process luigi in parallel on windows, but the solution
Python development in Visual Studio 2017