0

I can't seem to work inside of my already existing virtual environments. I am trying to add an interpreter location in the visual studio settings.json

{
    "python.pythonPath": "C:\\Users\\timwc\\AppData\\Local\\Programs\\Python\\Python38-32\\python.exe",
    "python.pythonPath": "D:\\GitProjects\\OrganizationApp\\venv1\\bin\\python"
}

However, when I restart VSC and try to change my interpreter (via the Command Palette) it doesn't show up.

  • 1
    Don't use keys in JSON twice! – Klaus D. Aug 25 '20 at 06:53
  • @Timothy Cottrell How did you create this virtual environment? Please try to use only one available pythonpath, and you could refer to it to check your steps of creating a virtual environment: https://code.visualstudio.com/docs/python/environments#_global-virtual-and-conda-environments – Jill Cheng Aug 25 '20 at 09:54
  • I created the virtual environment with the command ```python3 -m venv ./venv1``` – Timothy Cottrell Aug 25 '20 at 15:23
  • https://stackoverflow.com/questions/63591164/how-to-set-a-python-interpreter-from-inside-a-existing-virtual-environment-in-vi – Jill Cheng Aug 26 '20 at 08:01
  • @Jill Cheng That's a link to the same question just worked differently. I realized that two different lines in the settings.json wasn't how it worked thanks to this question. But after fixing that it still didn't change anything. – Timothy Cottrell Aug 26 '20 at 15:39
  • @Timothy Cottrell Yes, because the issue that need to be solved for these two threads are the same, it will be better solved when they are linked. Now, let's focus on the latest thread. – Jill Cheng Aug 27 '20 at 01:21

0 Answers0