Python·100 questions

How to create a virtual environment?

Answer
python -m venv venv.
Activation on Windows: venv\Scripts\activate.
Linux/Mac: source venv/bin/activate.
Deactivation: deactivate.
pip install package.
Was this answer helpful?

More questions in this topic

Related questions from other topics