The basic.
Click on down in right corner over python version and it will bring up
![[Image: 6KeOHi.png]](https://imagizer.imageshack.com/v2/xq70/924/6KeOHi.png)
When run
# Make G:\div_code λ python -m venv my_env # Cd in G:\div_code λ cd my_env\ # Activate G:\div_code\my_env λ G:\div_code\my_env\Scripts\activate.bat # A test file (my_env) G:\div_code\my_env λ cat test.py import sys print(sys.executable) # Start Vs Code (my_env) G:\div_code\my_env λ code .So should have VS Code in Path so can use
code .
(to start VS Code from folder you are in).Click on down in right corner over python version and it will bring up
select interpreter
as in image.![[Image: 6KeOHi.png]](https://imagizer.imageshack.com/v2/xq70/924/6KeOHi.png)
When run
test.py
,so will now use python.exe
in my_env folder.Output:g:\div_code\my_env\Scripts\python.exe