“no matching architecture in universal wrapper” problem in wxPython?

后端 未结 5 1623
陌清茗
陌清茗 2020-12-09 19:04

I am running Python 2.7 under Mac OS 10.6.4, and I just installed wxPython from the wxPython2.8-osx-unicode-2.8.11.0-universal-py2.7.dmg binary. I am getting a

5条回答
  •  悲哀的现实
    2020-12-09 19:39

    How have you installed python on Snow Leopard OSX (10.6) Series? Is your python compiled for 64 bit or 32 bit.

    Try doing the following:

    import platform
    print platform.architecture()
    

    Check out if the binary (wxpython dmg) was compiled for 32 or 64 bit. You might have to look for a package that is compatible with your architecture or you might have to compile from source on your machine.

    I would suggest that you use macports.

    1. install macports from macport.org
    2. sudo /opt/local/bin/port install python27
    3. sudo /opt/local/bin/port install python_select
    4. sudo /opt/local/python_select python27
    5. sudo /opt/local/bin/port install py27-wxpython

    and this should work for you!

提交回复
热议问题