To use starknet.py,
ecdsa, fastecdsa, sympy dependencies are required. Depending on the operating system,
different installation steps must be performed.
sudo apt install -y libgmp3-dev pip install starknet-py
Instructions assume Homebrew being installed.
If you are experiencing issues installing starknet.py related to
fastecdsa on recent versions of MacOS
cmake with version
brew install cmake
It is required to build crypto-cpp-py dependency in case it hasn’t been updated to support newest MacOS versions.
brew install gmp pip install starknet-py
brew install gmp CFLAGS=-I`brew --prefix gmp`/include LDFLAGS=-L`brew --prefix gmp`/lib pip install starknet-py
You can install starknet.py on Windows in two ways:
Install it just like you would on Linux.
You might encounter problems related to
In such case make sure that you have MinGW installed and up-to-date.
An easy way to install MinGW is through chocolatey.
You also should have MinGW in your PATH environment variable (e.g.
Use virtual machine with Linux, Windows Subsystem for Linux 2 (WSL2).