IDE: Visual Studio Code
Plugin: Cairo
Environment: python3
gmp
cairo-lang
- We recommend working inside a python virtual environment, but you can also install the Cairo package directly. To create and enter the virtual environment, type:
python3 -m venv ./cairo_venv
source ./cairo_venv/bin/activate
- Make sure you can install the following pip packages: ecdsa, fastecdsa, sympy (using pip3 install ecdsa fastecdsa sympy). On Ubuntu, for example, you will have to first run:
sudo apt install -y libgmp3-dev
- On Mac, you can use
brew
:
brew install gmp
- Install dependencies:
pip3 install --upgrade pip
pip3 install --upgrade -r requirements.txt
- Set
cairo-format
in Visual Studio Code:"cairo.cairoFormatPath": "[Project Root Path]/cairo_venv/bin/cairo-format"