[Ubuntu] pip install CP3 in an arbitrary directory



I’m wondering what would be the best way to install CP3 in a directory such as /opt/CellProfiler instead of user home folder or /usr/lib/python2-7.

I’d like to have an isolated install accessible to all users. Does pip have an option for that? Or should I use tox, virtualenv, or a container?


@maciekd Personally, I would recommend using Conda. See the Conda-Installation wiki page.

The runimagej branch of https://github.com/CellProfiler/CellProfiler-plugins has an environment.yml that should work as-is.

The conda-based environment will certainly be isolated (e.g. on my macOS machine with miniconda and an environment named cellprofiler, the installation prefix is /usr/local/miniconda3/envs/cellprofiler). Not sure about multi-user, though—I didn’t try it with any other users.