Skip to content
On this page

Installation ‚Äč

TIP

Before installing SmartPy you can try out the online IDE.

SmartPy can be installed via pip. Both Linux and macOS are supported. On Intel Macs Docker is required.

It can be obtained as follows:

shell
pip install https://smartpy.io/static/tezos_smartpy-0.19.1-py3-none-any.whl

To test it, you can download an example and run it:

shell
wget smartpy.io/templates/welcome.py
python welcome.py

You should now see a new welcome/ directory with test results and compiled contracts:

shell
$ ls Welcome/
log.txt                        step_003_cont_0_params.py    step_006_cont_0_params.json  step_008_cont_0_params.tz
step_002_cont_0_contract.json  step_003_cont_0_params.tz    step_006_cont_0_params.py    step_010_cont_1_contract.json
step_002_cont_0_contract.tz    step_004_cont_0_params.json  step_006_cont_0_params.tz    step_010_cont_1_contract.tz
step_002_cont_0_storage.json   step_004_cont_0_params.py    step_007_cont_0_params.json  step_010_cont_1_storage.json
step_002_cont_0_storage.py     step_004_cont_0_params.tz    step_007_cont_0_params.py    step_010_cont_1_storage.py
step_002_cont_0_storage.tz     step_005_cont_0_params.json  step_007_cont_0_params.tz    step_010_cont_1_storage.tz
step_002_cont_0_types.py       step_005_cont_0_params.py    step_008_cont_0_params.json  step_010_cont_1_types.py
step_003_cont_0_params.json    step_005_cont_0_params.tz    step_008_cont_0_params.py