Closed CarolinaFurtado closed 3 years ago
Done, it seems:
# Install requirements
sudo apt-get install -y \
checkinstall\
libreadline-gplv2-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
# install needed packages
sudo apt-get install -y cmake \
git \
libopencv-dev \
htop \
tmux \
tree \
p7zip-full
sudo apt-get install -y zlib1g-dev
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
gives out a warning when creating the VM but it is working:
google_compute_instance.vm[5] (remote-exec): WARNING: The script easy_install-3.7 is installed in '/home/cfurtado/opt/python-3.7.9/bin' which is not on PATH.
google_compute_instance.vm[5] (remote-exec): Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
google_compute_instance.vm[5] (remote-exec): WARNING: The scripts pip3 and pip3.7 are installed in '/home/cfurtado/opt/python-3.7.9/bin' which is not on PATH.
google_compute_instance.vm[5] (remote-exec): Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
without updating the ubuntu (and cuda versions) because errors with gpu drivers arrise