You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the folder settings.json point pythonPath to the python interpreter in the virtualenv (i.e. something like C:\Users\username\.virtualenvs\SomeProject-09hncfd\bin\python.exe
Create a custom Dockerfile based of Ubuntu 18.04 and build image (e.g. my-image:latest), in this image create a virtualenv based on the project's Pipfile using pipenv. Assume the virtualenv (in the image) is created at /root/.local/share/virtualenvs/SomeProject-1298hf
An error message appears: "You need to select a Python interpreter ..."
Does this issue occur when you try this locally?: No
Does this issue occur when you try this locally and all extensions are disabled?: No
In remote mode, VSCode doesn't seem to respect the pythonPath settings - it does not find the python in the virtualenv (although it's there). In the terminal the project can be run using either one of these commands:
pipenv run myscript.py from the project's folder, or
Steps to Reproduce:
settings.json
pointpythonPath
to the python interpreter in the virtualenv (i.e. something likeC:\Users\username\.virtualenvs\SomeProject-09hncfd\bin\python.exe
my-image:latest
), in this image create a virtualenv based on the project's Pipfile using pipenv. Assume the virtualenv (in the image) is created at/root/.local/share/virtualenvs/SomeProject-1298hf
Does this issue occur when you try this locally?: No
Does this issue occur when you try this locally and all extensions are disabled?: No
In remote mode, VSCode doesn't seem to respect the
pythonPath
settings - it does not find the python in the virtualenv (although it's there). In the terminal the project can be run using either one of these commands:pipenv run myscript.py
from the project's folder, or/root/.local/share/virtualenvs/SomeProject-1298hf/bin/python myscript.py
However in the Python Interpreter Selection only the system's Python installs appear (/usr/bin/python3, /usr/local/bin/python3)
Possibly related:
#187
#141
The text was updated successfully, but these errors were encountered: