The Mojo programming language
Project description
Get started | API docs | Changelog | GitHub
Mojo is a systems programming language specifically designed for high-performance AI infrastructure and heterogeneous hardware. Our vision for Mojo is to be the one programming language developers need to target diverse hardware—CPUs, GPUs, and other accelerators—using Python's intuitive syntax combined with modern systems programming capabilities. Of course, Mojo also provides strong interoperability with Python.
NOTE: Not available for Windows.
What's in mojo
The mojo package includes everything you need to program with Mojo, including
the Mojo compiler, standard library, language server (LSP), debugger (LLDB),
and more.
Not included but recommended is the Mojo extension for VS Code.
Get started with pip
-
Install Mojo:
pip install mojo
If you want the nightly build, instead use:
pip install --pre mojo \ --extra-index-url https://whl.modular.com/nightly/simple/
-
Write some code:
# hello.mojo def main(): print("Hello, World!")
-
Run the code:
mojo hello.mojoHello, World!
Using pip is great for existing Python-based environments, but if you're
getting started for the first time, we recommend instead installing with
pixi. For more information, see the Mojo install
guide.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mojo-0.26.1.0-py3-none-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: mojo-0.26.1.0-py3-none-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 22.3 MB
- Tags: Python 3, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6604f2910d3a7506ec8862b26076246d2badd3e78a760b9a8d56cce095ca470f
|
|
| MD5 |
76334e2cd76d3cb030ca2342a7da3baf
|
|
| BLAKE2b-256 |
a9489e04a4231f8d36b4b5ef44eb6a884f015aea287b9b3fa5977ed94708d648
|
File details
Details for the file mojo-0.26.1.0-py3-none-manylinux_2_34_aarch64.whl.
File metadata
- Download URL: mojo-0.26.1.0-py3-none-manylinux_2_34_aarch64.whl
- Upload date:
- Size: 22.0 MB
- Tags: Python 3, manylinux: glibc 2.34+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d9670dd81d1a479a0c0b92e3443e035f13aa00d5ca47727de748616c14fc33c
|
|
| MD5 |
a48e741340a3ec34af28e4f24b7c222f
|
|
| BLAKE2b-256 |
f33fc3b0921e7e9bb27e6b38b9caf84167d1f3d3324e100f707e4caf8b8e4763
|
File details
Details for the file mojo-0.26.1.0-py3-none-macosx_13_0_arm64.whl.
File metadata
- Download URL: mojo-0.26.1.0-py3-none-macosx_13_0_arm64.whl
- Upload date:
- Size: 14.9 MB
- Tags: Python 3, macOS 13.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d1d4aced04ec68b2286eab3893aa72588399ab1796db2fb391c45018517ca9d
|
|
| MD5 |
6cbdf0a02634b91ada102ec2086545c6
|
|
| BLAKE2b-256 |
961768caa3e0cd734a364c9caba5591c5f7e9b2c2fde020b5dc5ceb1745e96cd
|