(Mac / Linux / Windows WSL)
This guide covers the installation and setup of MoleditPy and the PySCF Calculator plugin. Since PySCF may have compatibility issues on native Windows, we provide specific instructions for Windows Subsystem for Linux (WSL) in addition to standard Mac/Linux setup.
You can install the application directly into your standard Python environment.
pip install moleditpy-installer
* On recent Linux distributions (e.g., Ubuntu 24.04), you may need to add the
--break-system-packages flag if you encounter an error.
python3 -m venv myenvsource myenv/bin/activatepip install moleditpy-installer
* Check the installation log. If you see a warning "WARNING: The script moleditpy-installer is installed in ... which is not on PATH", please use that full path.
echo 'export PATH=$PATH:~/.local/bin' >> ~/.bashrcsource ~/.bashrc
* This ensures you can run commands like `moleditpy` and `moleditpy-installer` directly.
moleditpy-installer
* If the command is not found (and you haven't set PATH), check the pip install
log for the full path (e.g.
~/.local/bin/moleditpy-installer).
moleditpy
pip install pyscf geometric matplotlib
* If you encounter an error on recent Linux, please add
--break-system-packages.
pyscf_calculator folder into your plugins
directory:
~/.moleditpy/plugins/Extensions > PySCF Calculator in the menu to
verify it loads.We strongly recommend using Windows Subsystem for Linux (WSL) to run PySCF on Windows for stability. (Note: Windows 11 or the latest Windows 10 is required for GUI app support via WSLg)
wsl --install
* You may need to restart your computer. After restarting, create a username and password for Ubuntu.
sudo apt update
sudo apt install python3-pip \libgl1 libegl1 libxkbcommon-x11-0 libdbus-1-3 \libxcb-cursor0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 \libxcb-randr0 libxcb-render-util0 libxcb-shape0 libxcb-xinerama0
echo 'export QT_QPA_PLATFORM=xcb' >> ~/.bashrcsource ~/.bashrc
Run these commands inside your WSL (Ubuntu) terminal.
pip install moleditpy-installer --break-system-packages
* The --break-system-packages flag is required on recent Linux distributions
(e.g., Ubuntu 24.04).
python3 -m venv myenvsource myenv/bin/activatepip install moleditpy-installer
pip install pyscf geometric matplotlib --break-system-packages
* If you are using a virtual environment, you can omit
--break-system-packages.
pyscf_calculator folder into it.
You can access it by typing
\\
in the address bar or via "Linux" in the navigation pane.
(Ensure the directory exists first)
mkdir -p ~/.moleditpy/plugins
moleditpy
MoleditPy will launch as a Linux GUI application via WSL.