How To Install Mojo Programming Language

Subscribers:
132
Published on ● Video Link: https://www.youtube.com/watch?v=bm5-5UDwZgA



Category:
Tutorial
Duration: 6:00
2,047 views
22


How To Install Mojo Programming Language
How To Install Mojo on Windows
How To Install Mojo Programming Language on Windows

1. Install WSL extension: https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-wsl
2. Install Ubuntu 22.04 for WSL and open it. https://apps.microsoft.com/store/detail/ubuntu-22042-lts/9PN20MSR04DW
3. In the Ubuntu terminal, install the Modular CLI:
curl https://get.modular.com | \
MODULAR_AUTH=mut_d7ed32687a364f08b01f438383cd6524 \
sh -
4. Install the Mojo SDK:
modular install mojo
5. Set the MODULAR_HOME and PATH environment variables, as described here:
https://docs.modular.com/mojo/manual/get-started/hello-world.html
6. Download and open VSCode by typing the below in Ubuntu Terminal:
code
7. Install Mojo extension, ipykernel, Python and Jupyter notebook in that VSCode.
8. Run Hello World program.
Save file: hello.mojo
Contents of the file:
fn main():
print("Hello")

How to run: In terminal type mojo hello.mojo







Tags:
mojo
mojo programming language
install mojo
how to install mojo