Specify the fully qualified name of the Python executable. In the Workspace Settings file (settings.json) as follows. “python.pythonPath”:Ĭonfigure the path to the Python interpreter Ensure to specify the fully qualified name This can be configured in one of two ways:Ĭonfigure the path to the python interpreter in the User Settings file Standard interpreter used is the first Python interpreterĮncountered in the current path. The same Python interpreter is used for intellisense, autocomplete, Python Version used for Intellisense, autocomplete, linting, formatting, etc. After installing it, you have to configure the path to the interpreter you want to use it with. I recommend using Don Jayamanne’s Python Extension. It is a little confusing as there are two different places to specify the path: settings.json and launch.json. It works great for Python 2, so the question is, how do I make it work for Python 3? Answer I want to debug a project written in Python 3 in Visual Studio Code, but I can’t seem to find any way of specifying interpreter or Python version in the launch.json file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |