Run the following command in your project directory:
python -m venv venvThis 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.txtmkdocs serve
This will start the mkdocs server
When finished working, you can exit the environment with:
deactivate