5/5
## Installing Moccasin We're going to install Moccasin by using the command `uv tool install 'mocassin==0.3.4b1' --prerelease=allow`. This command will install a specific pre-release version of Moccasin, which includes some extra features and quality of life improvements. We can check if the installation was successful by running the following commands: ```bash which mox ``` ```bash which moccasin ``` The output of these commands should show the location of the installed executables. If you see the locations, it means the installation was successful. We can also explore the available commands by running: ```bash mox --help ``` This will show you a list of all the commands available in Moccasin, including: * **init**: Initialize a new project. * **compile**: Compiles the project. * **test**: Runs all tests in the project. * **run**: Runs a script with the project's context. * **deploy**: Deploys a contract named in the config with a deploy script. * **wallet**: Wallet management utilities. * **console**: Interacts with the network in a python shell. * **install**: Installs the project's dependencies. * **purge**: Purge a given dependency. * **config**: View the Moccasin configuration. * **explorer**: Work with block explorers to get data. * **inspect**: Inspect compiler data of a contract. * **deployments**: View deployments of the project from your DB. * **utils**: Helpful utilities - right now it's just the one. We'll be learning how to use these commands in the upcoming lessons.
We're going to install Moccasin by using the command uv tool install 'mocassin==0.3.4b1' --prerelease=allow
. This command will install a specific pre-release version of Moccasin, which includes some extra features and quality of life improvements.
We can check if the installation was successful by running the following commands:
The output of these commands should show the location of the installed executables. If you see the locations, it means the installation was successful.
We can also explore the available commands by running:
This will show you a list of all the commands available in Moccasin, including:
init: Initialize a new project.
compile: Compiles the project.
test: Runs all tests in the project.
run: Runs a script with the project's context.
deploy: Deploys a contract named in the config with a deploy script.
wallet: Wallet management utilities.
console: Interacts with the network in a python shell.
install: Installs the project's dependencies.
purge: Purge a given dependency.
config: View the Moccasin configuration.
explorer: Work with block explorers to get data.
inspect: Inspect compiler data of a contract.
deployments: View deployments of the project from your DB.
utils: Helpful utilities - right now it's just the one.
We'll be learning how to use these commands in the upcoming lessons.
A comprehensive guide to installing the Mocassin smart contract development framework. This lesson covers the various installation methods, including using the uv tool and exploring the Mocassin documentation.
Previous lesson
Previous
Next lesson
Next
Give us feedback
Course Overview
About the course
Python basics
Introduction to Web3.py
Introduction to Titanoboa
Introduction to Moccasin
How to create an ERC-20
How to test Python code and Vyper smart contract
How to deploy Vyper smart contracts on ZKsync using Moccasin
Smart Contract Auditor
$100,000 - $200,000 (avg. salary)
On-chain Data Analyst
$59,000 - $139,000 (avg. salary)
DeFi Developer
$75,000 - $200,000 (avg. salary)
Smart Contract Engineer
$100,000 - $150,000 (avg. salary)
Web3 developer
$60,000 - $150,000 (avg. salary)
Web3 Developer Relations
$85,000 - $125,000 (avg. salary)
Last updated on August 11, 2025
Duration: 2h 20min
Duration: 1h 51min
Duration: 58min
Duration: 2h 23min
Duration: 53min
Duration: 2h 24min
Duration: 28min
Duration: 1h 54min
Duration: 11min
Course Overview
About the course
Python basics
Introduction to Web3.py
Introduction to Titanoboa
Introduction to Moccasin
How to create an ERC-20
How to test Python code and Vyper smart contract
How to deploy Vyper smart contracts on ZKsync using Moccasin
Smart Contract Auditor
$100,000 - $200,000 (avg. salary)
On-chain Data Analyst
$59,000 - $139,000 (avg. salary)
DeFi Developer
$75,000 - $200,000 (avg. salary)
Smart Contract Engineer
$100,000 - $150,000 (avg. salary)
Web3 developer
$60,000 - $150,000 (avg. salary)
Web3 Developer Relations
$85,000 - $125,000 (avg. salary)
Last updated on August 11, 2025