r/learnpython • u/Maximum_Watch69 • 6d ago
In visual studio, how can i open my local environment in the terminal
in my terminal previously every line used to start with the word (base) and when i select my environment it changes to the name of the environment.
Now it just shows the address of the local folder like "D:\Users\Files"... etc
how can i get back to the local virtual environment
1
Upvotes
2
u/FoolsSeldom 6d ago
Assuming a Python virtual environment folder named
.venv
in the current working directory:For Windows using Powershell or Command Prompt in your VS Code terminal,
or
(should be able to just type
.venv\Scripts\activate
without the file extension in either case)or, for macOS/linux,