25 lines
603 B
Bash
Executable File
25 lines
603 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Remove the old venv
|
|
rm -rf venv
|
|
|
|
# Create a new venv
|
|
python3 -m venv venv
|
|
|
|
# Activate the venv
|
|
source venv/bin/activate
|
|
|
|
# Install specific versions known to work together
|
|
pip install Flask==2.0.1
|
|
pip install Werkzeug==2.0.3
|
|
pip install Flask-SocketIO==5.1.1
|
|
pip install python-socketio==5.5.0
|
|
pip install dnspython==2.2.1
|
|
pip install eventlet==0.33.1
|
|
pip install yt-dlp==2023.3.4
|
|
|
|
# Install Whisper and its dependencies
|
|
# Note: This will take time as it installs PyTorch
|
|
pip install openai-whisper==20230314
|
|
|
|
echo "Setup complete! Activate the environment with: source venv/bin/activate" |