Setting up your environment this way avoids most errors on this page.
| Practice | What happens if you skip it |
|---|---|
| Create a dedicated environment with conda create -n p4env psi4 -c conda-forge/label/libint_dev -c conda-forge. | Dependencies from different channels cause pydantic, DLL or dependency conflict errors. |
| Install Psi4 in every environment that imports psi4. | The environment running Jupyter or IPython reports No module named psi4. |
| Use pip to add pure Python tools such as pytest to the Psi4 environment. | conda swaps Psi4 for another build to fit the new package, and results go wrong. |
| Set PSI_SCRATCH to a local disk folder with enough space. | The default /tmp runs out of space and large jobs fail midway. |
| Run psi4 with an input file name, or import psi4 in a Python script. | Running psi4 with no arguments fails because input.dat is missing. |
Troubleshooting by error message
Find your exact error message. Each entry gives the cause, the fix, and what may come up after the fix.
ImportError: DLL load failed while importing core: A dynamic link library (DLL) initialization routine failed. (Windows)
Cause: The old Psi4 Windows installer and psi4-channel dependencies are incompatible with the current system.
Fix: Create a new environment and install the current release from conda-forge: conda create -n p4env psi4 -c conda-forge/label/libint_dev -c conda-forge.
What may come next: The Windows build lacks some dependencies (such as libecpint), so calculations using those features may still fail; use WSL2 then.
ImportError: DLL load failed while importing core: The specified module could not be found. (Windows)
Cause: DLLs Psi4 depends on are not on the search path, typically when running outside the Psi4 environment or with stale paths from an old install in PATH.
Fix: Open Anaconda Prompt, conda activate the Psi4 environment, then run it; remove PATH entries pointing to an old Psi4 or an old Python under AppData.
ModuleNotFoundError: No module named 'psi4'
Cause: Psi4 is installed in another conda environment, while Jupyter or IPython runs the current environment's Python.
Fix: Run conda install psi4 -c conda-forge in the environment that runs your code, or install Jupyter into the Psi4 environment.
KeyError: 'The file input.dat does not exist.'
Cause: psi4 was run with no arguments, so it looks for input.dat in the current folder by default.
Fix: Run psi4 yourinput.in; for help use psi4 -h with no space between the dash and h.
PydanticImportError: `BaseSettings` has been moved to the `pydantic-settings` package.
Cause: Installing from the psi4 channel pulled in pydantic v2, while the dependency qcelemental uses an API only v1 has.
Fix: Create a new environment with every dependency from conda-forge: conda create -n p4env psi4 -c conda-forge/label/libint_dev -c conda-forge.
What may come next: Downgrading pydantic alone in the old environment can cause other version conflicts.
PackagesNotFoundError: The following packages are not available from current channels: - psi4
Cause: conda is too old and uses the legacy solver, or only the psi4 channel was given. Since 1.8 Psi4 is mainly published on conda-forge.
Fix: Update conda with conda update -n base conda first, then install with the conda-forge command.
What may come next: Using -c psi4/label/dev without -c conda-forge then fails with Found conflicts or UnsatisfiableError because libxc and gau2grid are missing.
Following atoms are too close (an input that used to work fails after conda installing another package into the Psi4 environment)
Cause: To fit the new package, conda swapped Psi4 for another build and the numpy version changed with it.
Fix: Install pure Python tools such as pytest with pip; if Psi4 was already swapped, pin its version and build again or create a new environment.
A PCM solvation run on Windows reports that the PCM module is not installed
Cause: The Psi4 1.8 Windows installer does not include pcmsolver.
Fix: In the Psi4 environment run conda install psi4=1.8.1 pcmsolver -c conda-forge/label/libint_dev -c conda-forge.
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 "compute the SAPT0/jun-cc-pVDZ interaction energy of this benzene dimer and report each energy component", and the agent uses the preinstalled Psi4 to do the modeling and computation, with no software to install and no code to write.
Compared with installing more on your own computer, the cloud computer already has Psi4 1.11 as a standalone tool, with psi4 on the command line and psi4-python for Python scripts, so its dependencies never clash with other software, 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
- Psi4 manual: obtaining Psi4 — conda-forge distribution since 1.8 and install commands
- Psi4 manual: environment variables and scratch files — PSI_SCRATCH and /tmp space
- Psi4 Forum: How to run psi4 on windows 10? — DLL load failed while importing core and conda-forge installs
- Psi4 Forum: input.dat does not exist — Running without arguments and No module named psi4
- Psi4 Forum: dependency error in a fresh environment — pydantic BaseSettings and taking all deps from conda-forge
- Psi4 Forum: install issues with 1.9.1 — PackagesNotFoundError and old conda
- Psi4 Forum: Software source not found — Following atoms are too close after conda install pytest
- Psi4 Forum: PCM solver on Windows — Fixed by installing pcmsolver