Skip to content
GSPICE

Getting started

Install

GSPICE installs from the Python Package Index (pygspice) or from a local Git clone and imports as gspice.

GSPICE needs Python 3.11 or later, numpy 1.26 or later and scipy 1.11 or later. pip installs numpy and scipy if they are missing.

GSPICE is on the Python Package Index (PyPI) as pygspice. Its import name is gspice:

Shell
pip install pygspice

An install from GitHub made before 2026-10-29 is named gspice. If pip show gspice finds it, run pip uninstall gspice first, because both packages write the same files.

A clone of the repository also holds the tests and the scripts of these pages. Clone it, then install it from its folder:

Shell
git clone https://github.com/joshspeagle/GSPICE
cd GSPICE
pip install .

Print the version of GSPICE:

Shell
python -c "import gspice; print(gspice.__version__)"
Text
2.0.0

If Python prints ModuleNotFoundError: No module named 'gspice', pip installed GSPICE for another Python. Run python -m pip install instead of pip install, with the python that you use.