Scikit-sparse is a Python wrapper for the SuiteSparse sparse matrix library.
Project description
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:
Python >= 3.10
NumPy >= 2.0
SciPy >= 1.14
Cython >= 3.0
SuiteSparse >= 7.4.0
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
217579251b1d91dcfeab5a16d6408f462dc353939f9e5dfa65ec0b41f0b603dc
|
|
| MD5 |
ab0b509a20a07070455db6bc39460731
|
|
| BLAKE2b-256 |
4a702351a8755de0b3d9821864299d6bba3feafb91e106b9b762a2675910392e
|
Provenance
The following attestation bundles were made for scikit_sparse-0.5.0.tar.gz:
Publisher:
deploy.yml on scikit-sparse/scikit-sparse
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
scikit_sparse-0.5.0.tar.gz -
Subject digest:
217579251b1d91dcfeab5a16d6408f462dc353939f9e5dfa65ec0b41f0b603dc - Sigstore transparency entry: 1019161321
- Sigstore integration time:
-
Permalink:
scikit-sparse/scikit-sparse@5f4772d01053bafb534672191457beb2d2a8c21c -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/scikit-sparse
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy.yml@5f4772d01053bafb534672191457beb2d2a8c21c -
Trigger Event:
release
-
Statement type: