Skip to content

Python

Reference

Pip

Pip

$> curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
$> python3 get-pip.py --user
$> python3 -m pip install --upgrade pip
$> pip3 install --upgrade --force-reinstall
$> pip3 freeze > requisites.txt

VirtualEnv

VirtualEnv

$> pip3 install virtualenv
Create a VirtualEnv project in the repo, take care that the path must be in the .gitignore file.
$> virtualenv -p python3.9 venv
$> source venv/bin/activate
$> pip install -r requeriments.txt

MkDocs

MkDocs

Install mkdocs with Pip

$> pip3 install mkdocs
Create a MkDocs project
$> python3 -m mkdocs new .
Run the project and go to http://localhost:8000
$> python3 -m mkdocs serve