mit-quest / necstlab-damage-segmentation

MIT License
5 stars 6 forks source link

Update python version #89

Closed CarolinaFurtado closed 3 years ago

CarolinaFurtado commented 3 years ago

Used this code to install another version of python instead of the default that comes with ubuntu:

# Install requirements
sudo apt-get install -y \
    checkinstall\
    libreadline-gplv2-dev\
    liblzma-dev\
    libncursesw5-dev\
    libssl-dev\
    libsqlite3-dev\
    tk-dev\
    libgdbm-dev\
    libc6-dev\
    libbz2-dev\
    zlib1g-dev\
    openssl\
    libffi-dev\
    python3-dev\
    python3-setuptools\
    wget\
    zlib1g-dev

# install needed packages
sudo apt-get install -y cmake \
    git \
    libopencv-dev \
    htop \
    tmux \
    tree \
    p7zip-full

cd ~
mkdir tmp
cd tmp
wget https://www.python.org/ftp/python/3.7.9/Python-3.7.9.tgz
tar zxvf Python-3.7.9.tgz
cd Python-3.7.9
./configure --prefix=$HOME/opt/python-3.7.9
make
make install
cd ~
echo 'export PATH=$HOME/opt/python-3.7.9/bin:$PATH' >> .bash_profile
. ~/.bash_profile
cd ~

pip3 install -U pip
pip3 install --upgrade setuptools
#pip3 uninstall crcmod -y
pip3 install --no-cache-dir crcmod
pip3 install --upgrade pyasn1
cd necstlab-damage-segmentation && pip3 install -r requirements.txt

it gives a warning with the path, but then I think that is fixed with:

echo 'export PATH=$HOME/opt/python-3.7.9/bin:$PATH' >> .bash_profile

image

The right python version is used with python3command

image

And all the workflow steps work

Ingest works

image

prepare dataset works

image

train works

image

train threshold works

image

test works

image

infer works

image

rak5216 commented 3 years ago

@Josh-Joseph this looks good to me as it works, but def something i think that you're more familiar with. thoughts? @CarolinaFurtado did a nice job documenting VM creation