1

How do I run a python script in my virtual environment without source activate?

Is there a command like this?

python3 [virtual environment I use] Main.py

1 Answer 1

3

You can run your code with the python executable inside the virtual environment like this:

my_venv/bin/python3 my_script.py
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.