Skip to content

Instantly share code, notes, and snippets.

@netixc
Forked from kevingduck/install_and_run.sh
Created December 29, 2023 01:48
Show Gist options
  • Save netixc/6953877dcfeef622c8d41b5ac0b5d902 to your computer and use it in GitHub Desktop.
Save netixc/6953877dcfeef622c8d41b5ac0b5d902 to your computer and use it in GitHub Desktop.
memGPT app installation script
#!/bin/bash
# Clone the repo
git clone https://github.com/cpacker/MemGPT.git
cd MemGPT/main || { echo "Directory MemGPT/main does not exist. Exiting."; exit 1; }
# Check for Python 3
if ! command -v python3 &>/dev/null; then
echo 'Python 3 is not installed. Exiting.'
exit 1
fi
# Check for pip3
if ! command -v pip3 &>/dev/null; then
echo 'pip3 is not installed. Exiting.'
exit 1
fi
# Install dependencies
pip3 install -r requirements.txt
# Run the script (replace 'script.py' with actual script name)
python3 script.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment