Create an virtual environment (a virtual environment
a command-line tool which creates an isolated Python enviroment)
$ python3 -m venv env
Activate your environment
$ source env/bin/activate
Installing packages
$ python3 -m pip install package_name
Write your script contents into test.py
print("hello")
Run your python app
$ python3 test.py