forked from olyaiy/TypeGPT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
29 lines (22 loc) · 1.06 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
## NOTE: when running ./install.sh, you may need: sudo apt install python3.10-venv
## Also if not already installed, you may need this as well: sudo apt-get install python3-dev
# Create a virtual environment
python3 -m venv myenv
# Activate the virtual environment
source myenv/bin/activate
# Install the required packages
pip install pynput requests pyperclip google-generativeai anthropic pillow pyautogui
# Check if Ollama is installed (for Llama3)
if ! command -v ollama &> /dev/null
then
echo "Ollama is not installed. Please install Ollama for Llama3 support."
echo "Visit https://github.com/jmorganca/ollama for installation instructions."
echo "After installing Ollama, run this script again to complete the setup."
echo "Exiting without deactivating the virtual environment."
exit 1
fi
# If we reach this point, all installations were successful
deactivate
echo "Installation completed successfully. You can now run the program with 'sh run.sh'"
echo "Make sure to update your API keys in the keys.txt file before running the program."