<aside> 📌 /!\ NOTE THAT THIS GUIDE IS WRITTEN FOR A LINUX UBUNTU USER /!\

</aside>

Since we moved to Cairo-1, the CLI command to compile a Cairo-0 contract is now:

starknet-compile-deprecated path/to/filename.cairo --output path/to/filename.json

However, if you try this command while using the latest releases of both the Cairo language and the Cairo compiler, you will trigger many errors and your contract will not be compiled!

That is because you need to be in a specific environment in order for the compilation to successfully happen. Your environment needs to be as follows:


CAIRO-0 ENVIRONMENT SETUP:

Step 1 - Open a virtual environment in Python3.9