install a python package when someone loads code example
Example 1: python install module from script
import subprocess
import sys
def install(package):
subprocess.check_call([sys.executable, "-m", "pip", "install", package])
Example 2: how to make python package
# This is too much for a grepper answer, so here is a link to the tutorial:
# https://towardsdatascience.com/how-to-build-your-first-python-package-6a00b02635c9