Setting up your environment this way avoids most errors on this page.
| Practice | What happens if you skip it |
|---|---|
| If you only need the graphical interface, use the official installer from pymol.org. It needs a license, and students and teachers can request a free educational license. | conda and third-party wheels are more prone to DLL and OpenGL errors. |
| If you need import pymol in Python scripts, create a conda environment and run conda install -c conda-forge pymol-open-source. | PyMOL ends up in another Python and scripts fail with No module named pymol. |
| On Windows, install the latest Microsoft Visual C++ Redistributable first. | PyMOL does nothing when launched and shows no error. |
| With third-party wheels, pick the file matching your Python version (for example cp312 for Python 3.12). | pip reports is not a supported wheel on this platform. |
| Do not build PyMOL from source. | You have to provide GLEW, glm, libpng, freetype and a dozen other dependencies plus a C++17 compiler. |
Troubleshooting by error message
Find your exact error message. Each entry gives the cause, the fix, and what may come up after the fix.
ModuleNotFoundError: No module named 'pymol'
Cause: PyMOL is installed in another Python environment, or only the installer was downloaded and nothing was installed into the Python running your script.
Fix: Activate the conda environment you want and run conda install -c conda-forge pymol-open-source; scripts run inside PyMOL's own command line can use cmd directly.
What may come next: Adding the PyMOL install folder to sys.path usually does not work and may load incompatible libraries.
ImportError: DLL load failed while importing _cmd: The specified module could not be found.
Cause: After a conda install of pymol-bundle on Windows, a DLL that PyMOL's core library needs fails to load.
Fix: Use the Windows installer from pymol.org instead.
What may come next: The official installer ships its own Python, so packages installed in other environments are not visible inside PyMOL.
PyMOL does nothing when launched on Windows and shows no error
Cause: The Microsoft Visual C++ runtime is missing, so PyMOL exits immediately on launch.
Fix: Install the latest Microsoft Visual C++ Redistributable (x64) and launch again.
ERROR: pymol-…-cp310-cp310-win_amd64.whl is not a supported wheel on this platform.
Cause: The wheel is built for a different Python version; cp310, for example, only installs on Python 3.10.
Fix: Check your version with python --version and install the wheel whose cp number matches.
What may come next: After switching Python versions, numpy and other dependencies must be reinstalled for the new version.
ImportError: libGL.so.1: cannot open shared object file: No such file or directory (Linux or WSL)
Cause: The OpenGL runtime is missing, so PyMOL's graphics cannot load.
Fix: On Ubuntu run sudo apt install libgl1; on WSL you also need WSLg, built into Windows 11, to show windows.
What may come next: Even with OpenGL installed, a server or WSL without a display may not open a window; for figures only, run pymol -c without a GUI.
PackagesNotFoundError: The following packages are not available from current channels: pymol-bundle (Apple silicon Mac)
Cause: Schrödinger's conda channel has no native Apple silicon build of pymol-bundle.
Fix: As pymol.org describes, create an x86 environment with conda create --platform osx-64 --name pymol, activate it, install, and run pip install PyQt5.
What may come next: The x86 environment runs through Rosetta translation, slower than native, and every package in it must be x86 too.
Scientify is a cloud computer with research software installed and AI agents such as Codex and Claude Code built in. Describe what you need in one sentence, for example "render the binding pocket of this protein-ligand complex as a paper figure and label the key residues", and the agent uses the preinstalled PyMOL to do the structure rendering and figures, with no software to install and no code to write.
Compared with installing more on your own computer, the cloud computer already has open-source PyMOL 3.1.0, and the agent loads structures, sets display styles and ray-traces images by script, with no graphics drivers, runtimes or licenses to install, and runs continue after you close your laptop.
The cloud computer comes with more computing power: CPU and GPU clusters can be called on demand for large-scale scientific computing. Compute is billed by the minutes you actually use, so nothing is wasted.
- Cloud computer
- 4 vCPU · 8 GB
- Top configuration, for data processing and small to medium jobs
- Callable GPU
- 96 GB VRAM
- Up to an RTX PRO 6000 per GPU; H800 80 GB and up to 8 × A10G also available
- Callable CPU
- 224 cores · 3 TB
- Largest spec, for large parallel computations
References
- PyMOL conda installation — pymol-bundle and the osx-64 environment on Apple silicon
- PyMOL Wiki: Windows Install — Silent exit without the Visual C++ runtime
- pymol-users: DLL load failed while importing _cmd — Switching to the Windows installer
- Biostars: Import Pymol into Python Script — No module named pymol and conda environments
- RosettaCommons Forum: libGL.so.1 — Missing OpenGL on WSL
- Installing open-source PyMOL on Windows — Matching wheels to Python versions
- pymol-open-source INSTALL — Build dependencies