-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.sh
31 lines (19 loc) · 940 Bytes
/
setup.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
30
31
#!/bin/bash
# Updating the system and installing essentials
sudo apt-get update
sudo apt-get install -y build-essential software-properties-common
# Adding the deadsnakes repository for Python 3.7
sudo add-apt-repository ppa:deadsnakes/ppa -y
sudo apt-get update
sudo apt-get install -y libglib2.0-0 libsm6 libxext6 libxrender-dev python3.7 python3.7-dev python3.7-venv \
wget vim git htop rsync libxrender1 libfontconfig
sudo apt-get update
sudo apt-get install -y --no-install-recommends ffmpeg
sudo apt-get install unzip
#wget https://bootstrap.pypa.io/get-pip.py && python3.7 get-pip.py && rm get-pip.py
python3.7 -m venv env
source ./env/bin/activate
wget https://bootstrap.pypa.io/get-pip.py && python3.7 get-pip.py && rm get-pip.py
python -m pip install --upgrade pip && pip install -r requirements.txt
echo export PYTHONPATH=$PWD:'$PYTHONPATH' >> ~/.bashrc
echo export PATH=$PWD/SwissKnife:'$PATH' >> ~/.bashrc