Setting up your environment this way avoids most errors on this page.
| Practice | What happens if you skip it |
|---|---|
| Install with pip install --prefer-binary pyscf. | pip picks a newer source-only release, compiles locally and fails without cmake. |
| On Windows, install 2.15 or later with pip or 2.14 or later with conda, or install inside WSL2. | Older releases have no Windows prebuilt package and the source build fails. |
| Install extras for features such as geometry optimization and dispersion as needed, for example pip install pyscf[geomopt] or pyscf[dispersion]. | Calling those features fails with missing modules. |
| When copying commands from web pages, check that option dashes are two plain hyphens. | A copied long dash makes pip report Invalid requirement. |
| Control threads with OMP_NUM_THREADS and memory with PYSCF_MAX_MEMORY or mol.max_memory. | Default thread counts and memory limits slow runs or run out of memory. |
Troubleshooting by error message
Find your exact error message. Each entry gives the cause, the fix, and what may come up after the fix.
error: command 'cmake' failed: No such file or directory
Cause: pip found no prebuilt package for your system and Python version, so it downloaded the source to compile locally, and cmake is missing.
Fix: Run pip install --prefer-binary pyscf so pip picks a version with a prebuilt package; if you really need a source build, pip install cmake and install a C compiler first.
What may come next: A source build also needs math libraries such as BLAS, and missing ones cause new errors later in the build.
pip install pyscf starts compiling from source on an Apple silicon Mac
Cause: PySCF 2.15.1 has no Apple silicon prebuilt package on PyPI, while 2.15.0 does.
Fix: Run pip install --prefer-binary pyscf, or pin pip install pyscf==2.15.0 to use the prebuilt package.
ERROR: Could not build wheels for pyscf, which is required to install pyproject.toml-based projects (Windows)
Cause: A release before 2.15 is being installed; those have no Windows prebuilt package on PyPI, and source builds on Windows fail easily.
Fix: Upgrade pip and install 2.15 or later, for example pip install -U pip and pip install "pyscf>=2.15"; for older releases, install inside WSL2.
What may come next: Libraries that depend on PySCF, such as PennyLane, may pin an older version, so check that they support the newer PySCF.
PackagesNotFoundError: The following packages are not available from current channels: pyscf (conda on Windows, older versions)
Cause: conda-forge only provides Windows builds from PySCF 2.14.0, so older versions are not found.
Fix: Run conda install -c conda-forge "pyscf>=2.14", or use pip install "pyscf>=2.15".
NameError: name 'LD_LIBRARY_PATH' is not defined (installing pennylane-qchem or other packages that depend on PySCF on Windows)
Cause: The dependency pulled an old PySCF source package whose install script only works on Linux and macOS.
Fix: Install pip install "pyscf>=2.15" on its own first, then the package that depends on it; old releases only install inside WSL2.
ERROR: Invalid requirement: '–prefer-binary'
Cause: The command was copied from a web page or document where the two hyphens became a single long dash.
Fix: Type --prefer-binary by hand with two plain hyphens.
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 "optimize this molecule at B3LYP/def2-TZVP and compute its HOMO-LUMO gap", and the agent uses the preinstalled PySCF 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 PySCF 2.14.0, so there are no prebuilt packages, cmake or compilers to deal with, 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
- PyPI: pyscf — Prebuilt platforms per release and the list of extras
- PySCF installation — pip, conda and source builds
- PySCF issue #1684 — cmake failed and --prefer-binary; the long dash on Windows
- PySCF issue #3411 — Publishing Windows wheels on PyPI
- PySCF issue #3220 — win-64 support on conda-forge
- Anaconda: pyscf on conda-forge — Versions available per platform
- PennyLane Forum: pennylane-qchem on Windows — NameError: name 'LD_LIBRARY_PATH' is not defined