V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
akaHenry
V2EX  ›  Python

Mojo 安装教程 - 包含 Intel Mac + M1 Mac + Ubuntu 安装避坑指南

  •  1
     
  •   akaHenry · 195 天前 · 940 次点击
    这是一个创建于 195 天前的主题,其中的信息可能已经有所发展或是发生改变。

    如题

    • ✅ Mojo 官方已经支持 M1 Mac 安装,不过,安装过程,有些小坑。
    • ✅ 加上之前写的 Intel Mac 安装 mojo 教程。 一起分享在这里, 有需要的,可以参考。
    • ✅ 本教程,包含 vscode + mojo 插件配置教程。

    M1 Mac:

    Intel Mac/Ubuntu:

    • Intel Mac 安装 Mojo 教程.

    • ✅ 可选 mojo 安装方案:

      • orbstack + Ubuntu 20.04.6 LTS 虚拟机 + vscode + mojo 插件。
      • orbstack + Ubuntu 22.04 Docker 容器 + vscode + mojo 插件 + dev containers 插件。
      • 官方提供的打包好的 docker 镜像,配合 vscode + dev containers 插件,原理相同。
    • ✅ 此教程,也完全适用 Ubuntu 20 安装,不建议使用 debain 、centos 等安装,会有很多报错,解决这些报错,毫无收益,没必要。

    Windows:

    • ✅ 可以基于 wsl + Ubuntu 方案,其他类似 Intel Mac 安装步骤。
    akaHenry
        1
    akaHenry  
    OP
       195 天前
    @livid

    是不是可以给 Mojo 创建一个节点?把 Mojo 的内容发在 Python 节点下,略有不合适。(可能有些人会反感)

    https://github.com/modularml/mojo

    Mojo 可以看作 Python++(亦如 C++ 之于 C ,TS 之于 JS ), 是 Swift 之父 Chris 发明的新语言。

    https://github.com/lattner

    目前 Mojo 已经发布了 0.4 版本,发展势头很猛。

    个人认为,会和 Python 长期互补+协同发展。也值得关注 & 储备该技术。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1036 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 788ms · UTC 23:43 · PVG 07:43 · LAX 16:43 · JFK 19:43
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.