master
DESKTOP-F04AGRR\Kritik Soman 3 years ago
parent 3f91f7f682
commit bdab025ccf

@ -2,26 +2,34 @@ if [ ! -d "gimpenv" ]; then
echo "\n-----------Installing GIMP-ML-----------\n" echo "\n-----------Installing GIMP-ML-----------\n"
if [ "$(uname)" == "Linux" ]; then if python --version 2>&1 | grep -q '^Python 2\.'; then #
if [[ $(lsb_release -rs) == "18.04" ]]; then #for ubuntu 18.04 echo 'Python 2 found.' #
sudo apt install python-minimal python -m pip install virtualenv
alias python='python2' python -m virtualenv gimpenv
elif python2 --version 2>&1 | grep -q '^Python 2\.'; then
elif [[ $(lsb_release -rs) == "20.04" ]]; then #for ubuntu 20.04 echo 'Python 2 found.'
sudo apt install python2-minimal python2 -m pip install virtualenv
wget https://bootstrap.pypa.io/get-pip.py python2 -m virtualenv gimpenv
alias python='python2' else
python get-pip.py echo 'Python 2 NOT found!'
sudo apt-get install libpython2.7 if [ "$(uname)" == "Linux" ]; then
if [[ $(lsb_release -rs) == "18.04" ]]; then #for ubuntu 18.04
elif [[ $(lsb_release -rs) == "10" ]]; then #for debian 10 sudo apt install python-minimal
wget https://bootstrap.pypa.io/get-pip.py alias python='python2'
python get-pip.py
elif [[ $(lsb_release -rs) == "20.04" ]]; then #for ubuntu 20.04
sudo apt install python2-minimal
wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
python get-pip.py
sudo apt-get install libpython2.7
elif [[ $(lsb_release -rs) == "10" ]]; then #for debian 10
wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
python get-pip.py
fi
fi fi
fi fi
python -m pip install --user virtualenv
python -m virtualenv gimpenv
source gimpenv/bin/activate source gimpenv/bin/activate
python -m pip install torchvision python -m pip install torchvision
python -m pip install "opencv-python<=4.3" python -m pip install "opencv-python<=4.3"

Loading…
Cancel
Save