st19297 st19297 - 22 days ago 6
Python Question

What is the easiest way to run Spyder in virtual environments?

Currently, I need to open windows cmd, navigate to the environment folders directory, activate the environment of choice, and type Spyder to run Spyder in that environment. Is there any easier way to do so?

Answer

Although you are on windows - in bash you might do something like that

source /path/to/venv/bin/python && /path/to/venv/bin/spyder

For windows it looks like that:

call path\to\venv\Scripts\activate & call path\to\venv\Scripts\spyder