This python package runs on python2. Here are the necessary steps for installing everything on Ubuntu 20.04 when you have no python2. If you already have python2 and virutalenv installed, look below.
- Install python2.7:
sudo apt install python2 - Install dev packages:
sudo apt install python2-dev - Get pip2:
wget https://bootstrap.pypa.io/pip/2.7/get-pip.py - Install pip2
sudo -H python2 get-pip.py - Install virtualenv:
sudo -H /usr/local/bin/pip install virtualenv - Create a virtualenv, you might need to do a chown on the directory first:
virtualenv /usr/local/share/cell_detector - Activate venv:
source /usr/local/share/cell_detector/bin/activate - Get DKCell:
git clone git@github.com:ActiveBrainAtlas2/DKCell.git - Install requirements:
pip install -r requirements - Run:
python test_frcnn_full_DK_May_2021_GPU0.pyand look for errors.
- Create a virtualenv: `virtualenv ~/.virtualenvs/cell_detector
- Activate: `source ~/.virtualenvs/cell_detector/bin/activate
- Get DKCell:
git clone git@github.com:ActiveBrainAtlas2/DKCell.git - Install requirements:
pip install -r requirements - Run:
python test_frcnn_full_DK_May_2021_GPU0.pyand look for errors.