Closed CarolinaFurtado closed 3 years ago
# 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
echo 'export PATH=$HOME/opt/python-3.7.9/bin:$PATH' >> .bash_profile
python3
@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
Used this code to install another version of python instead of the default that comes with ubuntu:
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
The right python version is used with
python3
commandAnd all the workflow steps work
Ingest works
prepare dataset works
train works
train threshold works
test works
infer works