Python 3.8, 3.9, and 3.10 are tested for support by spaghetti. Please make sure that you are operating in a Python >= 3.8 environment.


Installing with Python Package Index

$ pip install spaghetti

or download the source distribution (.tar.gz) and decompress it to your selected destination. Open a command shell and navigate to the decompressed folder.

$ pip install .


When installing via pip, you have to ensure that the required dependencies for spaghetti are installed on your operating system. Details on how to install these packages are linked here. Using conda (above) avoids having to install the dependencies separately.

Development Version

Install the most current development version of spaghetti by running:

$ pip install git+

You can also fork the pysal/spaghetti repo and create a local clone of your fork. By making changes to your local clone and submitting a pull request to pysal/spaghetti, you can contribute to the spaghetti development.