Pipenv - CellProfiler/CellProfiler GitHub Wiki

The instructions below apply to CellProfiler 3.1.9 and earlier versions. Instructions for CellProfiler 4.0 installation will be added shortly for all compatible platforms. Please check out the image.sc forum or our Github issues (and submit new issues as needed) if these instructions fail to work for you.

CellProfiler also supports headless installation with pipenv. For more information about pipenv, see the pipenv documentation. Pipenv can be used once a version is tagged/published to ensure that the dependencies that went into the GUI (scikit-image, numpy, scipy, etc) are the same ones being run on your cluster.

Unfortunately, due to our dependency on wxPython 3 for the GUI, CellProfiler can only run in headless mode at this time.

Once the pipenv environment is built, CellProfiler can be run using pipenv run cellprofiler, e.g. pipenv run cellprofiler -r -c -p ExampleHuman/ExampleHuman.cppipe --file-list ExampleHuman/imagelist.csv.

Note that pipenv environments to not behave like regular virtual environment. Pipenv manages the environments itself, pipenv requires being in a specific folder for the virtual environment to be used properly. Pipenv does have a flag to overwrite where the pipenv environment is stored (see PIPENV_VENV_IN_PROJECT and PIPENV_DOTENV_LOCATION)