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
ciki
V2EX  ›  Python

关于在 m1 上使用 cython 编译的问题

  •  
  •   ciki · 20 天前 · 1055 次点击

    现在使用 cython 编译后只能在 Apple Silicon 芯片上运行,我想编译 universal2 的,但是发现安装了 x86 的 python 环境也没用,还需要 x86 的 xcode ,人都麻了,有其他解决方案吗?

    4 条回复
    necomancer
        1
    necomancer  
       19 天前
    arch -x86_64 zsh 环境下用 anaconda x86 那个环境呢?
    ciki
        2
    ciki  
    OP
       18 天前
    @necomancer #1 不行,会用到 xcode 里面的 clang ,那个还是 arm 的
    necomancer
        3
    necomancer  
       18 天前
    我用的 macmini 没在手边……我看到这么个解决方案,搞 x86 的 brew ,然后那个 brew 安装 gcc 啥的? https://stackoverflow.com/questions/64882584/how-to-run-the-homebrew-installer-under-rosetta-2-on-m1-macbook
    noahlias
        4
    noahlias  
       16 天前
    用 github action 这种多端发布 让正经的 ci 来操作吧
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   987 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 19:22 · PVG 03:22 · LAX 12:22 · JFK 15:22
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.