GPy ships Cython wheels for Gaussian process models, but its contributor docs and default branch disagree
Gaussian processes framework in python
At a glance
- What is it?
- GPy is a Python framework for Gaussian processes from the SheffieldML group. Plain pip install gives you core modelling, plotting is an extra, and contributors build with Poetry. Release 1.15.0 on 2026-10-24 was the last one to declare Python 3.9 and 3.10.
- Who is it for?
- Use GPy when you want Gaussian process regression in Python from a pip wheel, with plotting added only where you need it. Skip it if you are stuck on Python 3.9 or 3.10, because release 1.15.0 was the last to declare them, or if you need a source build without a C compiler.
- Can I use it commercially?
- Yes. BSD-3-Clause is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository received new commits within the last day.
- What is it written in?
- Mainly Python, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 24, 2026, and from our analysis. They are not legal advice.
Star history
- SheffieldML/GPy2,168 ★ · -1
| Repository | 2026-10-08 | 2026-11-24 |
|---|---|---|
| SheffieldML/GPy | 2.2k | 2.2k |
-1 Stars in the last 47 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
Cython extensions arrive prebuilt in wheels, and an sdist fallback needs a C compiler
GPy is described as the Gaussian processes framework in Python, and a plain install is one command:
pip install gpyWhat that command downloads depends on your platform. Release CI publishes manylinux wheels for x86_64 and aarch64 with the Cython extensions built in, macOS wheels built on macos-latest, which is Apple Silicon, and Windows wheels. If none of those matches your system, pip falls back to building from the sdist. That build needs a C compiler and Cython, and it fails without them.
The practical split is simple. On a mainstream laptop or a Linux server you get a binary and nothing compiles. On an unusual platform, expect a source build and its toolchain requirements. Contributor installs through Poetry compile the extensions locally on any architecture that CI already tests, which the README lists as ubuntu, windows and macos including arm64.
The license is BSD-3-Clause, and the repository is not archived. The last push landed on 2026-10-25.
Core modelling works without Matplotlib or plotly
Plotting libraries are optional. Core modelling works with a plain pip install gpy, and plots come from an extra:
pip install 'gpy[plotting]'If the configured plotting library is missing, GPy still imports and continues without plotting. The README points to issue 1209 for that behavior. The effect is that a server or a training job can install GPy without pulling in a graphics stack, and a notebook user adds the extra when they want figures.
The cost of that design is a quiet failure mode. A script that calls a plot function in an environment without the extra does not stop at import time, so you find out when the plot does not appear. Install the extra wherever a human is expected to look at output, and leave it out of production images that only fit and predict.
The README mentions Matplotlib and plotly as the two optional libraries and does not say which one is the default.
Python 3.11 is the floor, and the last release for 3.9 and 3.10 was 1.15.0
The supported platforms section lists Python 3.11 and higher, with Windows, macOS and Linux badges. The recent releases explain the history: v1.15.0, published 2026-10-24, is titled as the last release declaring Python 3.9 and 3.10. The two before it are v1.14.2 on 2026-08-07 and v1.14.1 on 2026-08-05.
If you pin an older interpreter, that title is the warning to read. A project stuck on Python 3.10 can stay on the 1.15.0 line, but it will not receive later versions that declare only 3.11 and up. Plan the interpreter upgrade before the next dependency refresh.
The scipy requirement in the pip instructions is dated by comparison. The README asks for scipy 1.3.0 or later and strongly recommends the Anaconda distribution, with `conda update scipy` as the first step. That advice sits beside a Python 3.11 floor in the same document, so treat the Anaconda route as a legacy suggestion and verify it against current package versions yourself.
Contributors install with Poetry, and the lockfile never reaches pip users
Packaging uses Poetry, referenced in the README as CIP-0003. End users keep installing from PyPI wheels. The v1.15.0 release uses Poetry for editable installs and a locked environment. It recommends Poetry 2.x and lists 1.8 as the minimum. Check out that release before using the Poetry commands.
git clone https://github.com/SheffieldML/GPy.git
cd GPy
git checkout v1.15.0
poetry install --with dev
poetry run pytest GPy/testingThe poetry.lock file pins the contributor environment for reproducibility. A pip install gpy from PyPI does not use the lockfile, so the dependency versions you get can differ from what the maintainers test against. If you need reproducible versions in your own project, pin them yourself.
You can also build a wheel and install it without Poetry at runtime:
poetry build
pip install dist/gpy-*.whlThe same Poetry commands appear again in the troubleshooting section as the suggested fix when pip install gpy fails. That makes the source build the fallback for broken installs, which sends users to the contributor path when the release path breaks.
The default branch is devel, yet pull requests and troubleshooting say main
The repository's default branch is devel. The contribution steps tell you to create a pull request against `main`, the status table tracks the `main` branch, and the troubleshooting block runs git checkout main before installing. A new contributor who clones the default checkout lands on devel and then has to switch.
That mismatch is worth settling before you open a pull request. Confirm which branch accepts changes by checking the repository itself, since the README text and the default branch point at different names.
The pull request rules are specific. Lint and format with Ruff, referenced as CIP-0005. CI runs ruff check GPy and ruff format --check GPy using the select set in pyproject.toml. The recommended local setup is pip install pre-commit followed by pre-commit install, with hooks in .pre-commit-config.yaml. Commits should be separate per smallest concern, and each functionality or bugfix commit should contain code, tests and docs. Tests are unittests in the testing subfolder, and model_tests.py and kernel_tests.py are the first places to add a new model or kernel.
Parameterization moved out to paramz, and the changelog follows gitchangelog
The core parameterization was pulled out of GPy into a separate package called paramz, described as the pure gradient based model optimization. If you installed GPy with pip, upgrading is done with pip install --upgrade gpy. Anyone reading older GPy code or tutorials that refer to parameter handling in the main package should expect to find it in paramz now.
Changes are tracked in CHANGELOG.md. For a change to appear there, the commit message must follow the gitchangelog format. This is a contributor concern that becomes your concern if you maintain a fork, because a commit with a free-form message will not show up in the generated log.
Help channels are split. The README points community questions to GitHub Discussions in one place and to the issues section in another, so the Q&A venue is not stated consistently. The project also offers tutorial notebooks on nbviewer, a Read the Docs site, and notes on multi-output, coregionalized regression in doc/source/tuto_coregionalized.rst. The authors pronounce the name g-pie, and the citation entry gives the year as since 2012.
Editorial conclusion
Use GPy when you want Gaussian process regression in Python from a pip wheel, with plotting added only where you need it. Skip it if you are stuck on Python 3.9 or 3.10, because release 1.15.0 was the last to declare them, or if you need a source build without a C compiler. Before depending on it, run pip install gpy in a clean environment on your platform and check whether you got a wheel or an sdist build.
Frequently asked questions
How do I install GPy?
Run pip install gpy. Python 3.11 and higher is listed, and the README recommends scipy 1.3.0 or later. If no wheel matches your platform, pip builds from the sdist, which needs a C compiler and Cython.
Why does GPy import fine but show no plots?
Matplotlib and plotly are optional. If the configured plotting library is missing, GPy imports and continues without plotting. Install them with pip install 'gpy[plotting]'.
Which Python versions does GPy support?
The README lists Python 3.11 and higher. Release 1.15.0 on 2026-10-24 was the last release declaring Python 3.9 and 3.10.
Official sources
Was this useful?