Run the following command in your project directory:
python -m venv venv
This will create a folder named venv
containing the virtual environment.
To start using the virtual environment:
-
On macOS/Linux:
source venv/bin/activate
-
On Windows (Git Bash):
source venv/Scripts/activate
If you have a requirements.txt
file in your project:
pip install -r requirements.txt
mkdocs serve
This will start the mkdocs server
When finished working, you can exit the environment with:
deactivate