-
-
Notifications
You must be signed in to change notification settings - Fork 1
Installation for Windows
MoleditPy supports Python 3.9 through 3.14 (requires-python = ">=3.9, <3.15"). On Python 3.9 specifically, PyQt6 is pinned to <6.10 (all other supported versions use <6.12); pip resolves this automatically, you don't need to pin it yourself.
There are two supported ways to install MoleditPy on Windows:
-
Recommended:
moleditpy-installer— installs themoleditpypackage for you and can create a Start Menu/Desktop shortcut and register the.pmeprjfile association. See Method A below. - Conda-based install — a manually managed environment, useful if you want to pin exact dependency versions or already use Conda. See Method B.
-
Install the Python package
Open a terminal (PowerShell, Command Prompt, or a Conda Prompt) and run:
pip install moleditpy-installerThis automatically installs the
moleditpypackage (the Windows/macOS build) as a dependency. -
Run the installer
moleditpy-installerIn an interactive terminal this opens a TUI where you pick the components (Desktop shortcut, application-menu entry,
.pmeprjfile association) and the scope (per-user or system-wide), then press Install. Defaults: Desktop shortcut off, Start Menu entry on, file association on, per-user scope.For scripted/non-interactive installs, skip the TUI with explicit flags, e.g.:
moleditpy-installer --no-tui # install with the defaults moleditpy-installer --desktop # also create a Desktop shortcut # From an elevated (Run as Administrator) prompt, for a system-wide install: moleditpy-installer --system
-
Launch
moleditpy
-
Upgrade
pip install --upgrade moleditpy moleditpy-installer
-
Uninstall
moleditpy-installer --uninstall pip uninstall moleditpy
moleditpy-installer --uninstallremoves the shortcuts and file association only;pip uninstall moleditpyremoves the application itself.
See the moleditpy-installer README for the full option list (--check, --version, --help), or the Shortcut (Windows) page if you'd rather set up the shortcut and file association manually.
This procedure is designed to ensure library compatibility, which can often be an issue with GUI applications, by replicating the development environment and required library versions as closely as possible.
- Anaconda or Miniconda must be installed on your PC.
First, create a clean virtual environment dedicated to moleditpy.
-
Open the Conda Prompt
Find and launch "Anaconda Prompt" or "Miniconda Prompt" from the Windows Start Menu. -
Create a New Environment
Create an environment named moleditpy-env specifying a compatible Python version (e.g., 3.12).conda create -n moleditpy-env python=3.12
- If prompted with Proceed ([y]/n)?, type y and press Enter.
-
Activate the Created Environment
All subsequent operations will be performed within this new environment.conda activate moleditpy-envConfirm that the command prompt line now starts with (moleditpy-env).
With all the necessary dependencies in place, install moleditpy itself using pip.
- Install moleditpy with pip
Run the following command in the activated conda environment.If you want to install specific versions that are confirmed to be compatible, run this command:pip install moleditpy
pip install numpy==2.3.3 openbabel-wheel==3.1.1.22 PyQt6==6.9.1 QtPy==2.4.3 rdkit==2025.3.6 vtk==9.5.2 pyvista==0.46.3 pyvistaqt==0.11.3 moleditpy
Once the installation is complete, launch moleditpy as a GUI application. The initial launch may take some time.
- Run the Launch Command
In the command prompt (with moleditpy-env activated), execute the following:If the moleditpy GUI window appears, the environment setup is successful. You can confirm the installed version withmoleditpy
moleditpy --version.
conda activate moleditpy-env
pip install --upgrade moleditpyTo remove the environment entirely (this also removes moleditpy and every pinned dependency):
conda deactivate
conda env remove -n moleditpy-envIf you also ran moleditpy-installer inside this environment to create a shortcut/file association, run moleditpy-installer --uninstall first, since its own uninstall command needs moleditpy-installer to still be resolvable on the path.
- Shortcut (Windows) — creating a shortcut and file association manually
- Installation for macOS / Linux / with Docker
- Troubleshooting Common Issues