您的位置:首页 > 编程语言 > Python开发

Python 2.6 安装wxPython后提示"64.....32"错误解决办法

2017-08-26 18:29 531 查看
p.p1 { margin: 0.0px 0.0px 10.0px 0.0px; line-height: 20.0px; font: 14.0px "PingFang SC" }
li.li2 { margin: 0.0px 0.0px 0.0px 0.0px; line-height: 20.0px; font: 14.0px "PingFang SC" }
span.s1 { }
span.s2 { text-decoration: underline; color: #042eee }
ol.ol1 { list-style-type: decimal }
ImportError: /usr/local/lib/wxPython-unicode-2.8.10.1/lib/python2.6/site-packages/wx-2.8-mac-unicode/wx/_core_.so: no appropriate 64-bit architecture (see “man Python” for running in 32-bit mode)

要解决这个问题,只需要在 ~/.bash_profile 加入一行代码就行:

export VERSIONER_PYTHON_PREFER_32_BIT=yes

另外一种解决方案是执行以下命令:

defaults write com.apple.versioner.python Prefer-32-Bit -bool yes
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐