wxpython 不能运行在64位 mac 电脑上的解决方法
来源:互联网 发布:开淘宝网店收费吗 编辑:程序博客网 时间:2024/04/28 18:27
The problem is that WxPython is only available on the Mac in 32-bit mode; however, by default, Python will start up in 64-bit mode. To fix this problem, create the following shell script namedpython_32
:
#! /bin/bashexport VERSIONER_PYTHON_PREFER_32_BIT=yes/usr/bin/python "$@"
Make the script executable (chmod a+x python_32
) and place the script in your path. Now, simply invokepython_32
to get an interactive Python console in which you can use WxPython. If you want to write a Python script that uses this, you can use the shebang:#! /usr/bin/env python_32
.
Now to explain... the basic problem is that 32-bit and 64-bit code uses a different application binary interface (ABI), and so 32-bit code and 64-bit code cannot coexist in the same library/executable/process. In order to support 64-bit mode, it needs to have been compiled in 64-bit mode; likewise, to support 32-bit mode, it needs to have been compiled in 32-bit mode. Under OS X, it is possible, using universal binaries to support both... however, it needs to be compiled in both modes (and then merged). WxWidgets probably uses Carbon, which is only available in 32-bit mode (Cocoa is available in both 32-bit and 64-bit mode... Apple didn't bother making Carbon available in both modes, since it is being deprecated), which would explain why WxPython, in turn, could only be provided in 32-bit mode. This, in turn, means that using it in Python requires you to launch Python in 32-bit mode (Python is a universal binary with both 32-bit and 64-bit versions of itself available in the same binary file, so it can be launched in either mode).
- wxpython 不能运行在64位 mac 电脑上的解决方法
- matlab在64位的机子上不能运行notebook解决方法
- mac 64位 安装wxpython后报错解决方法
- VIRTOOLS 5.0在WIN7 64位系统里不能运行的解决方法
- (Devexpress)打包好的程序只能在开发的电脑上运行,不能在别人电脑上运行
- (Devexpress)打包好的程序只能在开发的电脑上运行,不能在别人电脑上运行
- 关于红色警戒2不能在Win10&64位系统上运行的问题的解决
- dante-server在64位Ubuntu上无法运行解决方法
- 解决Tomcat不能在64位Windows上作为服务运行的问题
- 解决Tomcat不能在64位Windows上作为服务运行的问题
- servlet在本地服务器上可以运行,在云服务器上不能运行的解决方法
- ArcGIS Server 9.x/10.x在64位Windows系统上无法运行的解决方法
- 在Mac系统上安装使用wxPython
- 在64位操作系统上运行32位的程序
- 在64位操作系统上运行32位的程序
- visual studio编写的exe程序不能在没装vs的电脑上运行
- 关于OpenCV开发的程序不能在其他电脑上运行的问题
- VS2008编写的程序在有些电脑上不能运行的解决办法。
- ZigBee研究之旅(三)---CC2530的电源管理模块
- Java线程:新特征-障碍器
- Android 获取屏幕尺寸与密度
- Java线程:大总结
- centos svn安装及配置与使用
- wxpython 不能运行在64位 mac 电脑上的解决方法
- loadrunner average Time 和 90% percent
- hdu 1258(深搜)
- Java NIO框架之 Mina
- Linux学习步骤:
- Windows编程基础 第八章 位图 坐标系映射模式 文字和字体 对话框
- centos 端口命令
- Service与Android系统实现(1)-- 应用程序里的Service
- lxc路由模式