推荐学习书目
› 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 · Aug 27, 2024 · 4739 views
    This topic created in 770 days ago, the information mentioned may be changed or developed.

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

    necomancer
        1
    necomancer  
       Aug 28, 2024
    arch -x86_64 zsh 环境下用 anaconda x86 那个环境呢?
    ciki
        2
    ciki  
    OP
       Aug 29, 2024
    @necomancer #1 不行,会用到 xcode 里面的 clang ,那个还是 arm 的
    necomancer
        3
    necomancer  
       Aug 29, 2024
    我用的 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  
       Aug 31, 2024
    用 github action 这种多端发布 让正经的 ci 来操作吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1149 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 17:06 · PVG 01:06 · LAX 10:06 · JFK 13:06
    ♥ Do have faith in what you're doing.