ydl/install.sh

31 lines
554 B
Bash
Raw Normal View History

2019-12-18 21:13:45 +01:00
#!/bin/bash
## Save current virtual environment
## activate current venv
#source ./venv/bin/activate
## pip freeze requirements
#pip freeze > requirements.txt
## deactivate current venv
#source ./venv/bin/deactivate
2019-12-19 07:12:43 +01:00
# Optional
sudo apt-get install ffmpeg xterm virtualenv python3 python3-tk
2019-12-18 22:55:34 +01:00
# Clone from repo
git clone http://github.com/fabthegreat/ydl
# Enter in the newly created dir
cd ydl
2019-12-18 21:13:45 +01:00
# Create new venv
2019-12-18 22:55:34 +01:00
virtualenv --python=/usr/bin/python3 venv
2019-12-18 21:13:45 +01:00
#activate new venv
2019-12-18 22:55:34 +01:00
source venv/bin/activate
2019-12-18 21:13:45 +01:00
# pip install
pip install -r requirements.txt
2019-12-18 22:55:34 +01:00