Install into an existing Anaconda setup (all platforms)

  1. Update (optional): You may wish to consider updating Anaconda before installing:

    conda update --all
    but consider possible impact on other Anaconda environments you may have configured.
  2. Install mamba (optional): We had been recommending that everyone install 'mamba', a MUCH faster alternative to the 'conda' command. However, mamba no longer seems to be installing properly itself with the current (as of Mar 2023) release of Anaconda. So, if you are using a somewhat older Anaconda installation, you may want to consider installing mamba, then using 'mamba' instead of 'conda' when installing packages. If you try to install mamba and it gets stuck for a long time or fails, then just use 'conda' for the EMAN2 install. Conda may take a long time to solve the install. If you want to try installing mamba:

    conda install mamba -c conda-forge
  3. Install: We strongly recommend installing EMAN2 within its own Anaconda/Miniconda environment:

    conda create -n eman2 eman-dev -c cryoem -c conda-forge
  4. M1/M2 Macs (Optional): initial support for Tensorflow on the GPU is available via PyPi, but not conda.

    # with the eman2 environment activated
    pip install tensorflow-metal
  5. Linux: see the GPU section below.

  6. 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
  7. Run these programs to see if the install worked:
       1 # This will display the exact version you have installed. If you ask for help, provide the full output of this command.
       2 e2version.py
       3 # Relative speed factor of a single core on your computer, 2-3 typ.
       4 e2speedtest.py
       5 # Opens a browser window you can use to view any EMAN2 compatible file in various ways
       6 e2display.py
       7 # Creates a small image with a circle in the middle of it
       8 e2proc2d.py :64:64:1 test.hdf --process mask.sharp:outer_radius=24
       9 # Displays the file you just created
      10 e2display.py test.hdf