0

why venv of python in vs code ran, when i called the terminal?

30th Jan 2022, 1:51 PM
Dega Hidayat
7 odpowiedzi
+ 2
By default, the Python extension looks for and uses the first Python interpreter it finds in the system path. Maybe you changed the preset or the Python interpreter (like if you have multiple Python versions or venv installed). To select a specific environment, use the Python: Select Interpreter command from the Command Palette (Ctrl+Shift+P)
31st Jan 2022, 9:22 AM
Bob_Li
Bob_Li - avatar
0
because vs code runs the python script in a virtual enviornment
30th Jan 2022, 1:53 PM
Slick
Slick - avatar
0
so what should i do to fix the venv ? i want the venv not automaticlly running.
30th Jan 2022, 1:55 PM
Dega Hidayat
0
Why? But if you really wamt to there should be a setting in vs code for that. It's the safest way to do it with a venv cause it doesn't load your main python enviornment with unusable libraries. Its for using python scripts of different python generations
30th Jan 2022, 1:58 PM
Slick
Slick - avatar
0
cause, when i called in other file the venv still automatis running and then when i called the new terminal the venv still automatis running. i want to deactivate the venv automaticlly
30th Jan 2022, 2:02 PM
Dega Hidayat
0
thanks before sir
30th Jan 2022, 2:03 PM
Dega Hidayat
0
thanks i've done for this problem
31st Jan 2022, 11:38 AM
Dega Hidayat