bottle module python code example

Example 1: Bottle (web framework)

Bottle is a WSGI micro web-framework for the Python programming language. It is designed to be fast, simple and lightweight, and is distributed as a single file module with no dependencies other than the Python Standard Library. The same module runs with Python 2.7 and 3.x. 
To install:

pip install bottle

Example 2: python bottle

# install bottle (basic, if path is not set yet)
py -m pip install bottle
# or set PATH to use pip:
setx PATH "%PATH%;C:\<path\to\python\directory\>\Scripts"
pip install bottle
# or
pip3 install bottle --upgrade
# if "connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed" [!]:
py -m pip install --trusted-host pypi.python.org pip bottle
# if PermissionError: [WinError 5] Access is denied
py -m pip install --user bottle
# or via creating a virtual environment venv:
py -m venv c:\path\to\new\environment
# then execute:
c:\path\to\new\environment\Scripts\activate.bat

Example 3: install bottle

pip install bottle