-
-
Notifications
You must be signed in to change notification settings - Fork 1
Installation for macOS
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.
There are two supported ways to install MoleditPy on macOS:
-
Recommended:
moleditpy-installer— installs themoleditpypackage for you and creates aMoleditPy.applauncher (in~/Applicationsor/Applications) plus the.pmeprjfile association. See Method A below. - Conda-based install — a manually managed environment. See Method B.
-
Install the Python package
pip install moleditpy-installer
This automatically installs the
moleditpypackage as a dependency. -
Run the installer
moleditpy-installer
In an interactive terminal this opens a TUI where you pick the components (Desktop shortcut,
.pmeprjfile association) and scope (per-user~/Applicationsor system-wide/Applications), then press Install. For scripted use:moleditpy-installer --no-tui(defaults),moleditpy-installer --desktop(also add a Desktop copy), orsudo moleditpy-installer --system(system-wide).The generated
MoleditPy.apppairs themoleditpyscript with the Python interpreter of its own environment (detected from the adjacent interpreter or the script's shebang), and is ad-hoc code-signed after configuration — required for the app to launch on Apple Silicon. MoleditPy always opens inside a Terminal window so Python output and errors stay visible; the first launch shows a one-time macOS consent prompt ("MoleditPy wants access to control Terminal") — click OK. -
Launch
Double-click
MoleditPy.appin Applications, or from the terminal:moleditpy
-
Upgrade
pip install --upgrade moleditpy moleditpy-installer moleditpy-installer # re-run to refresh the app bundle/signature if needed -
Uninstall
moleditpy-installer --uninstall pip uninstall moleditpy
See the moleditpy-installer README for the full option list, or Shortcut (macOS) to build the .app launcher manually with Automator.
This procedure is designed to ensure library compatibility, which can often be an issue with GUI applications.
- Anaconda or Miniconda must be installed on your Mac.
First, create a clean virtual environment dedicated to moleditpy.
- Open Terminal
- 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.Confirm that the terminal prompt now starts with (moleditpy-env).conda activate 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.
-
Run the Launch Command
In the terminal (with moleditpy-env activated), execute the following:moleditpy
If the moleditpy GUI window appears, the environment setup is successful. Confirm the installed version with
moleditpy --version.
conda activate moleditpy-env
pip install --upgrade moleditpyTo remove the environment entirely:
conda deactivate
conda env remove -n moleditpy-env- Shortcut (macOS) — creating a shortcut manually
- Installation for Windows / Linux / with Docker
- Troubleshooting Common Issues