Update, upgrade, and install python3 sudo apt update && sudo apt upgrade -y sudo apt install python3 Install the requirements pip3 install -r requirements.txt Export your API key export OPENAI_API_KEY="your_api_key" Alternatively, you can add the above line to a file and run source export_my_key.sh