eman2:install:sourceinstall
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| eman2:install:sourceinstall [2026/03/04 21:43] – steveludtke | eman2:install:sourceinstall [2026/03/07 00:23] (current) – steveludtke | ||
|---|---|---|---|
| Line 38: | Line 38: | ||
| * Install: | * Install: | ||
| - | < | + | < |
| bash < | bash < | ||
| </ | </ | ||
| Line 83: | Line 83: | ||
| < | < | ||
| - | conda create -n eman2 eman-dev --only-deps | + | conda create -n eman2 eman-dev --only-deps -c conda-forge |
| </ | </ | ||
| If, and ONLY if, you are installing on a headless machine without graphics, you can alternatively set up the **non-GUI** variant which will not have pyqt and pyopengl. Doing this will severely limit EMAN2' | If, and ONLY if, you are installing on a headless machine without graphics, you can alternatively set up the **non-GUI** variant which will not have pyqt and pyopengl. Doing this will severely limit EMAN2' | ||
| - | < | + | < |
| - | conda create -n eman2 ' | + | conda create -n eman2 ' |
| </ | </ | ||
| Line 96: | Line 96: | ||
| | | ||
| - | 6. Ensure you have **OpenGL**: | + | 6. **GPU Acceleration** EMAN2 increasingly leverages GPU acceleration on compatible machines, and moving forward we have moved from tensorflow to JAX. EMAN2 still includes some tensorflow code, and tensorflow should already have been installed as part of the configuration above. Given its rapid state of development we suggest installing JAX using pip instead: |
| + | |||
| + | Linux + NVidia GPU: | ||
| + | < | ||
| + | conda activate eman2 | ||
| + | pip install " | ||
| + | </ | ||
| + | |||
| + | Mac or other non-Nvidia: | ||
| + | < | ||
| + | conda activate eman2> | ||
| + | pip install jax optax | ||
| + | </ | ||
| + | |||
| + | 7. Ensure you have **OpenGL**: | ||
| EMAN2 uses OpenGL (via !PyQt) for all of its graphics. OpenGL installation depends on OS variant and, for example, whether you are using proprietary NVidia drivers under Linux. You will need to have OpenGL set up on your machine as a whole before continuing. On Mac, you should already have this with XCode. On Linux with an NVidia driver you will likely also need to install the Mesa header files. If you aren't sure how to set up OpenGL, Google can probably help. | EMAN2 uses OpenGL (via !PyQt) for all of its graphics. OpenGL installation depends on OS variant and, for example, whether you are using proprietary NVidia drivers under Linux. You will need to have OpenGL set up on your machine as a whole before continuing. On Mac, you should already have this with XCode. On Linux with an NVidia driver you will likely also need to install the Mesa header files. If you aren't sure how to set up OpenGL, Google can probably help. | ||
| - | 7. **Get EMAN code** from [[https:// | + | 8. **Get EMAN code** from [[https:// |
| < | < | ||
| cd < | cd < | ||
| Line 105: | Line 119: | ||
| </ | </ | ||
| - | 8. **Create a build directory** (out-of-source builds are recommended). | + | 9. **Create a build directory** (out-of-source builds are recommended). |
| < | < | ||
| mkdir < | mkdir < | ||
| </ | </ | ||
| - | 9. **GPU/deep learning** Install JAX per the next section for GPU support. JAX is required for virtually all of the new EMAN3 programs | + | 10. **GPU/deep learning** Install JAX per the next section for GPU support. JAX is required for virtually all of the new EMAN3 programs |
| - | + | ||
| - | ===== GPU Aceleration & Deep Learning ===== | + | |
| - | Older EMAN2 programs make use of Tensorflow for Deep Learning/ | + | |
| - | + | ||
| - | * Tensorflow | + | |
| - | * Should be installed automatically as part of the EMAN2 environment setup above | + | |
| - | * You can check to see what version of Tensorflow and whether it is GPU accelerated with: "conda list|grep tensorflow" | + | |
| - | + | ||
| - | * JAX | + | |
| - | * While it is possible to install JAX using conda/ | + | |
| - | * Instead, we strongly suggest just installing JAX using pip: | + | |
| - | * conda activate eman2 | + | |
| - | * Linux (NVIDIA): pip install " | + | |
| - | * Other (cpu): pip install jax optax | + | |
| - | * see [[https:// | + | |
| ===== Build and Install: Daily development, | ===== Build and Install: Daily development, | ||
| Line 195: | Line 194: | ||
| Solutions to potential known problems will be listed here. If these don't help, please report your problem (http:// | Solutions to potential known problems will be listed here. If these don't help, please report your problem (http:// | ||
| + | * **Linux** | ||
| + | * On recent linux installs (2025+) when running a tensorflow program you may encounter an error like **ImportError: | ||
| + | * This command may help in some situations: //patchelf --clear-execstack $CONDA_PREFIX/ | ||
| * **macOS** Users (bash only) | * **macOS** Users (bash only) | ||
| * On macOS, installation modifies // | * On macOS, installation modifies // | ||
eman2/install/sourceinstall.1772660598.txt.gz · Last modified: by steveludtke
