Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create linux_install.sh #567

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions linux_install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/bin/bash

# Ensure the script is run as root this was tested on Debain 12
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi

# Update and install essential packages
apt-get update && apt-get upgrade -y
apt-get install -y python3-pip python3-venv git

# Create a directory for your setup
mkdir -p /opt/my_project
cd /opt/my_project

# Set up Python virtual environment
python3 -m venv venv
source venv/bin/activate

# Install PyTorch (CPU version)
pip install torch torchvision torchaudio

# Clone the transformers and Bark repository and install them
git clone https://github.com/huggingface/transformers.git
cd transformers
pip install .
cd ..

git clone https://github.com/suno-ai/bark.git
cd bark
pip install .

echo "Setup complete. All packages are installed."