1、今天试着安装了一下wxpython,进入python,import wx,结果报如下错误:

mac 64位 安装wxpython后报错解决方法

  看最后一句提示,wxpython须在32位python环境下运行,执行一下command解决:

 

defaults write com.apple.versioner.python Prefer-32-Bit -bool yes,

运行:

mac 64位 安装wxpython后报错解决方法

2、如果想改回来,执行:

defaults write com.apple.versioner.python Prefer-32-Bit -bool no。

mac 64位 安装wxpython后报错解决方法

转载于:https://www.cnblogs.com/liuqxFuture/archive/2012/11/13/2768586.html

相关文章:

  • 2022-12-23
  • 2021-06-22
  • 2022-12-23
  • 2021-11-01
  • 2022-12-23
  • 2022-12-23
  • 2021-08-17
  • 2021-11-08
猜你喜欢
  • 2021-10-11
  • 2022-12-23
  • 2021-11-27
  • 2021-04-10
  • 2021-12-19
  • 2021-12-15
相关资源
相似解决方案