eman2:install:binaryinstallanaconda_2.99
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
eman2:install:binaryinstallanaconda_2.99 [2025/06/19 21:38] – steveludtke | eman2:install:binaryinstallanaconda_2.99 [2025/07/06 18:16] (current) – steveludtke | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | Strongly suggest installing [[eman2: | + | Strongly suggest installing [[eman2: |
====== Binary Installation Instructions v2.99.47 (2023/ | ====== Binary Installation Instructions v2.99.47 (2023/ | ||
Line 9: | Line 9: | ||
There are three ways to install EMAN2: | There are three ways to install EMAN2: | ||
- | 1. Traditional Binary Installation (includes Anaconda/ | + | 1. Traditional Binary Installation (This approach is deprecated now) |
- | * [[#Linux|Linux]] | + | * Linux |
- | * [[#Mac|Mac]] | + | * Mac |
- | * [[#WSL|Windows (WSL)]] | + | * Windows (WSL2) |
- | 2. NEW: [[# | + | |
- | 3. [[EMAN2: | + | |
- | If you are already an active | + | |
- | ---- | + | 3. [[EMAN2:Install:SourceInstall|Install from GitHub (source build)]] |
- | << | + | |
- | ==== Option 2: Install into an existing Anaconda setup (all platforms, experimental) ==== | + | |
- | * This method is still experimental. //To use this approach, you must already have [[https:// | + | |
- | * On M1/M2 Macs, make sure you have the ARM64 Anaconda/ | + | |
- | * On Windows 11 machines, you may not use a native Windows Anaconda install, but rather need a Linux Anaconda install within a [[https:// | + | |
- | 4. **Update (optional): | + | If you are already an active |
- | < | + | |
- | conda update --all | + | |
- | </ | + | |
- | but consider possible impact on other Anaconda environments you may have configured. | + | |
- | 5. **Install mamba (optional): | + | |
- | < | + | |
- | conda install mamba -c conda-forge | + | |
- | </ | + | |
- | 6. **Install: | + | |
- | < | + | |
- | conda create -n eman2 eman-dev==2.99.47 -c cryoem -c conda-forge | + | |
- | </ | + | |
- | + | ||
- | 7. **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 | + | |
- | </ | + | |
- | 8. **Linux:** see the [[# | + | |
- | 9. **Activate | + | |
- | < | + | |
- | conda activate eman2 | + | |
- | </ | + | |
- | 10. Run these programs to see if the install | + | |
- | < | + | |
- | # This will display | + | |
- | e2version.py | + | |
- | # Relative speed factor of a single core on your computer, 2-3 typ. | + | |
- | e2speedtest.py | + | |
- | # Opens a browser window | + | |
- | e2display.py | + | |
- | # Creates | + | |
- | e2proc2d.py :64:64:1 test.hdf --process mask.sharp: | + | |
- | # Displays the file you just created | + | |
- | e2display.py test.hdf | + | |
- | </ | + | |
---- | ---- | ||
- | << | + | ==== Option 1 (Linux): Standard Binary Install |
- | ==== Option 1 (Linux): Standard Binary Install ==== | + | |
- | <code>#!wiki note | + | <note>The neural network code in EMAN2 works best on machines with Nvidia GPUs. For this to work, compatible Nvidia drivers, CUDA libraries and Tensorflow GPU support must be installed.</ |
- | The neural network code in EMAN2 works best on machines with Nvidia GPUs. For this to work, compatible Nvidia drivers, CUDA libraries and Tensorflow GPU support must be installed. | + | |
- | </code> | + | |
- | 11. Cleanup: **Only if you have an old pre-Anaconda install of EMAN2 on your machine**: | + | 1. Cleanup: **Only if you have an old pre-Anaconda install of EMAN2 on your machine**: |
* Please remove or rename any existing installed EMAN2 folder you might have. | * Please remove or rename any existing installed EMAN2 folder you might have. | ||
* Please remove any existing EMAN2 entries from PATH. | * Please remove any existing EMAN2 entries from PATH. | ||
* LD_LIBRARY_PATH, | * LD_LIBRARY_PATH, | ||
* If you have any of these shell variables set for use with other software, it may be necessary to remove those settings as well. If the tests below fail after installation, | * If you have any of these shell variables set for use with other software, it may be necessary to remove those settings as well. If the tests below fail after installation, | ||
- | 12. **Download: | + | |
- | 13. **Install: | + | 2. **Download: |
- | < | + | |
+ | 3. **Install: | ||
+ | < | ||
bash < | bash < | ||
</ | </ | ||
Line 84: | Line 40: | ||
* You will be asked if you want to initialize EMAN2 (conda init). Answer yes, or you won't have access to the ' | * You will be asked if you want to initialize EMAN2 (conda init). Answer yes, or you won't have access to the ' | ||
* EMAN2 initialization will add a block of code to your // | * EMAN2 initialization will add a block of code to your // | ||
- | 14. **Close Shell** After installation, | + | |
- | 15. **Test:** Run these programs to see if the install worked: | + | 4. **Close Shell** After installation, |
- | < | + | |
+ | 5. **Test:** Run these programs to see if the install worked: | ||
+ | < | ||
# This will display the exact version you have installed. If you ask for help, provide the full output of this command. | # This will display the exact version you have installed. If you ask for help, provide the full output of this command. | ||
e2version.py | e2version.py | ||
Line 100: | Line 58: | ||
==== Troubleshooting and Tips ==== | ==== Troubleshooting and Tips ==== | ||
- | * If you have an NVidia graphics card, see [[#GPU|//Using the GPU//]] section below. | + | * If you have an NVidia graphics card, see //Using the GPU// section below. |
- | * If you receive an " | + | * If you receive an " |
* If you get an error like the one below, dependency installation step might have failed. < | * If you get an error like the one below, dependency installation step might have failed. < | ||
Traceback (most recent call last): | Traceback (most recent call last): | ||
Line 117: | Line 75: | ||
* If this causes issues for other software, you can type < | * If this causes issues for other software, you can type < | ||
* Alternatively, | * Alternatively, | ||
- | * Check continuous build sections, [[EMAN2: | + | * Check continuous build sections, [[EMAN2: |
---- | ---- | ||
- | << | ||
==== Option 1: Standard Binary Install (Mac) ==== | ==== Option 1: Standard Binary Install (Mac) ==== | ||
**// | **// | ||
- | 16. Cleanup: **Only if you have a pre-Anaconda install of EMAN2 on your machine**: | + | 1. Cleanup: **Only if you have a pre-Anaconda install of EMAN2 on your machine**: |
* Please remove or rename any existing installed EMAN2 folder you might have. | * Please remove or rename any existing installed EMAN2 folder you might have. | ||
* Please remove any existing EMAN2 entries from PATH. | * Please remove any existing EMAN2 entries from PATH. | ||
* LD_LIBRARY_PATH, | * LD_LIBRARY_PATH, | ||
* If you have any of these shell variables set for use with other software, it may be necessary to remove those settings as well. If the tests below fail after installation, | * If you have any of these shell variables set for use with other software, it may be necessary to remove those settings as well. If the tests below fail after installation, | ||
- | 17. **Download: | + | 2. **Download: |
- | 18. **Install: | + | |
- | < | + | 3. **Install: |
+ | < | ||
bash < | bash < | ||
</ | </ | ||
Line 137: | Line 95: | ||
* You will be asked if you want to initialize EMAN2 (conda init). Answer yes, or you won't have access to the ' | * You will be asked if you want to initialize EMAN2 (conda init). Answer yes, or you won't have access to the ' | ||
* EMAN2 initialization will add a block of code to your // | * EMAN2 initialization will add a block of code to your // | ||
- | 19. Close your current terminal window (you may actually want to log out completely), | + | 4. Close your current terminal window (you may actually want to log out completely), |
- | 20. **Test:** Run these programs to see if the install worked: | + | |
- | < | + | 5. **Test:** Run these programs to see if the install worked: |
+ | < | ||
# This will display the exact version you have installed. If you ask for help, provide the full output of this command. | # This will display the exact version you have installed. If you ask for help, provide the full output of this command. | ||
e2version.py | e2version.py | ||
Line 172: | Line 131: | ||
---- | ---- | ||
- | << | + | ==== Windows 10/11 WSL2 ==== |
- | ==== Windows 10/11 WSL ==== | + | |
Windows 10/11 includes an embedded Ubuntu Linux environment. With up to date versions of WSL, it shouldn' | Windows 10/11 includes an embedded Ubuntu Linux environment. With up to date versions of WSL, it shouldn' | ||
[[https:// | [[https:// | ||
Line 181: | Line 139: | ||
==== Windows Native ==== | ==== Windows Native ==== | ||
- | We are no longer | + | We are no longer providing native windows binaries for EMAN2. We strongly encourage use of the WSL approach to use EMAN2 (and other open source software) on Windows machines. The Native binaries never supported complete EMAN2/ |
==== Windows 10 Legacy WSL ==== | ==== Windows 10 Legacy WSL ==== | ||
- | **If you are running an out of date WSL environment**, | + | **If you are running an out of date WSL environment**, |
It is possible to run the EMAN2 **Linux binaries** within this Win10 environment, | It is possible to run the EMAN2 **Linux binaries** within this Win10 environment, | ||
Line 192: | Line 150: | ||
</ | </ | ||
- | 21. Click " | + | 1. Click " |
* Enable " | * Enable " | ||
* Enable " | * Enable " | ||
Line 198: | Line 156: | ||
| | ||
- | 22. Install Ubuntu from " | + | 2. Install Ubuntu from " |
| | ||
- | 23. Run " | + | 3. Run " |
- | 24. Install OpenGL. | + | 4. Install OpenGL. |
- | < | + | < |
sudo apt update | sudo apt update | ||
sudo apt install libsm-dev libxrender-dev build-essential libgl1-mesa-dev mesa-utils mesa-common-dev libglu1-mesa libglu1-mesa-dev mesa-utils | sudo apt install libsm-dev libxrender-dev build-essential libgl1-mesa-dev mesa-utils mesa-common-dev libglu1-mesa libglu1-mesa-dev mesa-utils | ||
Line 211: | Line 169: | ||
</ | </ | ||
- | 25. Install [[https:// | + | 5. Install [[https:// |
* Don't forget the fonts and Mesa (OpenGL) modules! If it seems to work, but the letters are black boxes, or you have other visual artifacts, the problem is probably with OpenGL support. | * Don't forget the fonts and Mesa (OpenGL) modules! If it seems to work, but the letters are black boxes, or you have other visual artifacts, the problem is probably with OpenGL support. | ||
- | 26. Download and install LINUX binary, not windows binary! [[https:// | + | 6. Download and install LINUX binary, not windows binary! [[https:// |
< | < | ||
Make sure to follow the instructions for shell initialization using `conda-init`. | Make sure to follow the instructions for shell initialization using `conda-init`. | ||
</ | </ | ||
- | 27. Start X Server and set environment variables. | + | 7. Start X Server and set environment variables. |
- | < | + | < |
export DISPLAY=:0 | export DISPLAY=:0 | ||
glxinfo | grep OpenGL | glxinfo | grep OpenGL | ||
Line 228: | Line 186: | ||
- | 28. Run these programs to see if the install worked: | + | 8. Run these programs to see if the install worked: |
- | < | + | < |
e2version.py | e2version.py | ||
e2speedtest.py | e2speedtest.py | ||
Line 239: | Line 197: | ||
---- | ---- | ||
- | << | ||
==== Using NVidia GPUs ==== | ==== Using NVidia GPUs ==== | ||
- | Currently, GPUs are only used for a few specific programs involving deep learning, such as tomogram annotation, particle picking and GMM variability analysis. | + | < |
This support is limited to Linux, and (potentially with some extra effort) Win 11 with an LSW2 installation. | This support is limited to Linux, and (potentially with some extra effort) Win 11 with an LSW2 installation. | ||
- | Many machines will have CUDA installed already, and if CUDA is an appropriate version, this should work fine with the !TensorFlow version shipped with EMAN2. However, if you are running newer versions of CUDA there may be problems. You can test compatibility quickly with: | + | Many machines will have CUDA installed already, and if CUDA is an appropriate version, this should work fine with the TensorFlow version shipped with EMAN2. However, if you are running newer versions of CUDA there may be problems. You can test compatibility quickly with: |
< | < | ||
# Make sure you have your environment set to run EMAN2 programs | # Make sure you have your environment set to run EMAN2 programs | ||
Line 258: | Line 215: | ||
* Installation depends on linux distribution, | * Installation depends on linux distribution, | ||
- | < | + | < |
apt-get install nvidia-cuda-toolkit | apt-get install nvidia-cuda-toolkit | ||
</ | </ | ||
* If the version of CUDA you have installed is incompatible, | * If the version of CUDA you have installed is incompatible, | ||
- | < | + | < |
conda remove tensorflow-gpu tensorflow-gpu-base | conda remove tensorflow-gpu tensorflow-gpu-base | ||
pip install tensorflow | pip install tensorflow |
eman2/install/binaryinstallanaconda_2.99.1750369139.txt.gz · Last modified: by steveludtke