Python Forum
setting up the VS Code to work with Python - virtual environment-configuration
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
setting up the VS Code to work with Python - virtual environment-configuration
#3
(Sep-28-2019, 04:38 PM)perfringo Wrote: i need to get a closer idea of the setting up VSCode for the work with Python:
VS Code from start
I always start for command line setting up virtual environment then code . to start VS Code.
Find automatically virtual environment and can use Code Runner eg Button.
So Code Runner always follow the selected interpreter down in left corner,as use setting "python": "$pythonPath $fullFileName",.

Quick tour.
# Make environment 
E:\div_code
λ python -m venv forum_env

# Cd in
E:\div_code
λ cd forum_env\

# Activate environment 
E:\div_code\forum_env
λ E:\div_code\forum_env\Scripts\activate

# Start VS Code
(forum_env) E:\div_code\forum_env
λ code .
[Image: gET0pZ.png]
Reply


Messages In This Thread
RE: setting up the VS Code to work with Python - virtual environment-configuration - by snippsat - Sep-28-2019, 06:28 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Adding to python environment in pyenv virtual project Larz60+ 4 2,937 Jun-26-2022, 11:26 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020