Skip to content

How to run a .py file in the current terminal/cmd in a virtual environment? #18685

Discussion options

You must be logged in to vote

You need to select the virtual environment as your Python environment, then we will know how to run your code using the virtual environment.

Did you launch VS Code in that activated environment, or did you activate it manually? If it's the former then you would want to see #2124 implemented. If it's the latter then there's no way for us to know you did something in the terminal.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@StefanBloemheuvel
Comment options

Answer selected by brettcannon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area-environments Features relating to handling interpreter environments
2 participants