-
Notifications
You must be signed in to change notification settings - Fork 73
Source Installation (Ubuntu 20.04)
Anders Larsson edited this page Dec 2, 2021
·
1 revision
These are instructions I came up with when installing CellProfiler-Analyst on Ubuntu 20.04, I installed in a python venv to avoid conflicts with other python libs on the server, hope they can help:
# install dependencies from ubuntu repos
sudo apt-get update
sudo apt-get install -y \
build-essential \
default-libmysqlclient-dev \
git \
libgtk-3-dev \
libnotify-dev \
libsdl2-dev \
libzmq3-dev \
locales \
openjdk-11-jdk-headless \
python3-pip \
python3-venv
# clone git-repo
git clone https://github.com/CellProfiler/CellProfiler-Analyst.git
# It is probably best to checkout a specific tag here,
git checkout 3.0.4
# enter cloned repo
cd CellProfiler-Analyst
# create and activete venv
python3 -m venv venv
source venv/bin/activate
# install pip depeendencies (not in requirements.txt)
pip install numpy
# add JAVA_HOME (needed py some pip packages, when building with wheel)
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
# build and compile Python dependencies and CellProfiler-Analyst
pip install -e .
To run the program you could create a simple bash-script CellProfiler-Analyst.sh
activating venv and running main module
#!/usr/bin/env bash
source /**<install-dir>**/venv/bin/activate
python3 -m CellProfiler-Analyst
To remove program, just rm
the CellProfiler-Analyst directory that also contains the Python venv
directory