Skip to main content

Scikit-sparse is a Python wrapper for the SuiteSparse sparse matrix library.

Project description

Latest GitHub release Latest PyPI release Latest conda-forge release CI Status https://readthedocs.org/projects/scikit-sparse/badge/?version=latest

Scikit-Sparse (sksparse)

The scikit-sparse package is a companion to the scipy.sparse package for sparse matrix manipulation in Python. It provides routines that are not suitable for inclusion in scipy.sparse proper, typically because they depend on external libraries with GPL licenses, such as SuiteSparse.

For more details on usage see the docs. To upgrade from scikit-sparse v0.4.16 to v0.5.0, see Upgrading to v0.5.0.

Requirements

Installing scikit-sparse requires:

Older versions may work but are untested.

Installation

Installing SuiteSparse

To install scikit-sparse, you need to have the SuiteSparse library installed on your system.

It is recommended that you install SuiteSparse and the scikit-sparse dependencies in a virtual environment, to avoid conflicts with other packages. We recommend using Anaconda:

$ conda create -n scikit-sparse python>=3.10 suitesparse
$ conda activate scikit-sparse

If you are not using Anaconda, you can install SuiteSparse using your preferred package manager.

On MacOS, you can use Homebrew:

$ brew install suite-sparse

On Debian/Ubuntu systems, use the following command:

$ sudo apt-get install python-scipy libsuitesparse-dev

On Arch Linux, run:

$ sudo pacman -S suitesparse

Installing Scikit-Sparse

Once you have SuiteSparse installed, you can install scikit-sparse with:

$ conda install -c conda-forge scikit-sparse

or if you prefer to use pip, you can install it with:

$ pip install scikit-sparse

Check if the installation was successful by running the following command:

$ python -c "import sksparse; print(sksparse.__version__)"

See Troubleshooting for more information on determining which SuiteSparse library is being used.


Copyright © 2009–2025, the scikit-sparse developers.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scikit_sparse-0.5.0.tar.gz (106.3 kB view details)

Uploaded Source

File details

Details for the file scikit_sparse-0.5.0.tar.gz.

File metadata

  • Download URL: scikit_sparse-0.5.0.tar.gz
  • Upload date:
  • Size: 106.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for scikit_sparse-0.5.0.tar.gz
Algorithm Hash digest
SHA256 217579251b1d91dcfeab5a16d6408f462dc353939f9e5dfa65ec0b41f0b603dc
MD5 ab0b509a20a07070455db6bc39460731
BLAKE2b-256 4a702351a8755de0b3d9821864299d6bba3feafb91e106b9b762a2675910392e

See more details on using hashes here.

Provenance

The following attestation bundles were made for scikit_sparse-0.5.0.tar.gz:

Publisher: deploy.yml on scikit-sparse/scikit-sparse

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page