mirror of
https://github.com/tcsenpai/agenticSeek.git
synced 2025-06-06 11:05:26 +00:00
fix : improve install script
This commit is contained in:
parent
039ea71678
commit
a5ecd2d389
29
scripts/linux_install.sh
Normal file → Executable file
29
scripts/linux_install.sh
Normal file → Executable file
@ -2,23 +2,34 @@
|
|||||||
|
|
||||||
echo "Starting installation for Linux..."
|
echo "Starting installation for Linux..."
|
||||||
|
|
||||||
|
set -e
|
||||||
# Update package list
|
# Update package list
|
||||||
sudo apt-get update
|
sudo apt-get update || { echo "Failed to update package list"; exit 1; }
|
||||||
# make sure essential tool are installed
|
# make sure essential tool are installed
|
||||||
sudo apt install python3-dev python3-pip python3-wheel build-essential alsa-utils
|
# Install essential tools
|
||||||
|
sudo apt-get install -y \
|
||||||
|
python3-dev \
|
||||||
|
python3-pip \
|
||||||
|
python3-wheel \
|
||||||
|
build-essential \
|
||||||
|
alsa-utils \
|
||||||
|
portaudio19-dev \
|
||||||
|
python3-pyaudio \
|
||||||
|
libgtk-3-dev \
|
||||||
|
libnotify-dev \
|
||||||
|
libgconf-2-4 \
|
||||||
|
libnss3 \
|
||||||
|
libxss1 || { echo "Failed to install packages"; exit 1; }
|
||||||
|
|
||||||
# upgrade pip
|
# upgrade pip
|
||||||
pip install --upgrade pip
|
pip install --upgrade pip
|
||||||
# install port audio
|
|
||||||
sudo apt-get install portaudio19-dev python-pyaudio python3-pyaudio
|
|
||||||
# install chromedriver misc
|
|
||||||
sudo apt install libgtk-3-dev libnotify-dev libgconf-2-4 libnss3 libxss1
|
|
||||||
# install wheel
|
# install wheel
|
||||||
pip install --upgrade pip setuptools wheel
|
pip install --upgrade pip setuptools wheel
|
||||||
# install docker compose
|
# install docker compose
|
||||||
sudo apt install docker-compose
|
sudo apt install -y docker-compose
|
||||||
# Install Python dependencies from requirements.txt
|
|
||||||
pip3 install --no-cache-dir --force-reinstall -r requirements.txt
|
|
||||||
# Install Selenium for chromedriver
|
# Install Selenium for chromedriver
|
||||||
pip3 install selenium
|
pip3 install selenium
|
||||||
|
# Install Python dependencies from requirements.txt
|
||||||
|
pip3 install -r requirements.txt
|
||||||
|
|
||||||
echo "Installation complete for Linux!"
|
echo "Installation complete for Linux!"
|
32
scripts/macos_install.sh
Normal file → Executable file
32
scripts/macos_install.sh
Normal file → Executable file
@ -2,19 +2,27 @@
|
|||||||
|
|
||||||
echo "Starting installation for macOS..."
|
echo "Starting installation for macOS..."
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Check if homebrew is installed
|
||||||
|
if ! command -v brew &> /dev/null; then
|
||||||
|
echo "Homebrew not found. Installing Homebrew..."
|
||||||
|
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# update
|
||||||
|
brew update
|
||||||
|
# make sure wget installed
|
||||||
|
brew install wget
|
||||||
|
# Install chromedriver using Homebrew
|
||||||
|
brew install --cask chromedriver
|
||||||
|
# Install portaudio for pyAudio using Homebrew
|
||||||
|
brew install portaudio
|
||||||
|
# update pip
|
||||||
|
python3 -m pip install --upgrade pip
|
||||||
|
# Install Selenium
|
||||||
|
pip3 install selenium
|
||||||
# Install Python dependencies from requirements.txt
|
# Install Python dependencies from requirements.txt
|
||||||
pip3 install -r requirements.txt
|
pip3 install -r requirements.txt
|
||||||
|
|
||||||
# make sure wget installed
|
|
||||||
brew install wget
|
|
||||||
|
|
||||||
# Install chromedriver using Homebrew
|
|
||||||
brew install --cask chromedriver
|
|
||||||
|
|
||||||
# Install portaudio for pyAudio using Homebrew
|
|
||||||
brew install portaudio
|
|
||||||
|
|
||||||
# Install Selenium
|
|
||||||
pip3 install selenium
|
|
||||||
|
|
||||||
echo "Installation complete for macOS!"
|
echo "Installation complete for macOS!"
|
0
scripts/windows_install.bat
Normal file → Executable file
0
scripts/windows_install.bat
Normal file → Executable file
Loading…
x
Reference in New Issue
Block a user