Setup your Python environment
To be able to run Wasmer inside our Python application, we will need Python to be installed in our system.
The easiest way to get Python in your system is to follow the official documentation.
To ensure it is installed, let's run the following:
1
python --version # This will show the Python version
Copied!
If this command work, Python is successfully installed!

Start a Python project

Now it's time to create a new project and add Wasmer as a dependency:
1
mkdir wasmer-project
2
cd wasmer-project
3
pip install wasmer wasmer_compiler_cranelift
Copied!
More compilers are also available:
    Singlepass: pip install wasmer_compiler_singlepass
    LLVM: pip install wasmer_compiler_llvm
For a detailed installation instructions, please refer to Wasmer Python integration documentation.
Next, let's take a look at some examples!
Last modified 8mo ago
Copy link