how to install psycopg2 in python 3.5 code example Example: install psycopg2 ubuntu sudo apt-get update -y sudo apt-get install -y python3-psycopg2