Created
October 21, 2023 01:05
-
-
Save kevingduck/5081bf2510396c8624457e46f5ed5a61 to your computer and use it in GitHub Desktop.
memGPT app installation script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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