Table of Contents

EMAN2 (Binary) Installation

For up-to-date binary installations you must use the instructions on this page. The old binary installation images were retired in late 2023. They are still available for historical purposes, but are no longer updated.

While the installation method on this page is fine, if you install from source, then you can rapidly update when we make small patches to the code. Code is being developed continuously, and binaries are often built only every few months.

Install binary into Anaconda/MiniForge environment (all platforms)

1. Install Anaconda or MiniForge (for your platform)

2. Install mamba (only if necessary):

conda install mamba -c conda-forge

3. Update (optional): consider updating Anaconda/!MiniForge before installing. It's a good idea to do this periodically:

mamba update --all

but if you have many other (non-EMAN) environments, you may consider if this will impact them.

4. Install EMAN2: We strongly recommend installing EMAN2 within its own !MiniForge environment like this:

conda create -n eman2 eman-dev -c cryoem -c conda-forge

||Current version: || || || ||||

5. Activate to Use: Any time you want to use EMAN2 you will need to first activate the correct environment. You can deactivate when done.

conda activate eman2

6. Linux: see the GPU section below.

7. Run these programs to see if the install worked:

#!highlight bash
# This will display the exact version you have installed. If you ask for help, provide the full output of this command.
e2version.py
# Relative speed factor of a single core on your computer, 2-3 typ.
e2speedtest.py
# Opens a browser window you can use to view any EMAN2 compatible file in various ways. Close the main window when done.
e2display.py
# Creates a small image with a circle in the middle of it
e2proc2d.py :64:64:1 test.hdf --process mask.sharp:outer_radius=24
# Displays the file you just created
e2display.py test.hdf

«Anchor(GPU)»

GPU Aceleration & Deep Learning

Older EMAN2 programs make use of Tensorflow for Deep Learning/GPU support, but we have been gradually migrating to the new JAX library, so having both installed is strongly suggested.

If you have problems you cannot figure out, feel free to post questions to the EMAN2 Google Group.