情似当年
2018-09-21 03:37
采纳率: 33.3%
浏览 966

Mac下安装robot运行ride.py后报python should be executed in 32-bit mode with wxPython on OSX.

-bash-3.2$ defaults read com.apple.versioner.python
{
"Prefer-32-Bit" = 1;
"Prefer-64-Bit" = 0;
}
-bash-3.2$ ride.py
python should be executed in 32-bit mode with wxPython on OSX.

defaults write com.apple.versioner.python Prefer-32-Bit -bool yes
没有起作用。

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

3条回答 默认 最新

  • Feeling  2018-09-21 07:16
    已采纳

    检查wxPython path,检查wx.pth、 wx-3.0-osx_cocoa path

    点赞 打赏 评论
  • Feeling  2018-09-21 05:59

    Python驱动是32-bit 用默认execute 32-bit command :defaults write com.apple.versioner.python Prefer-32-Bit -bool yes

    点赞 打赏 评论
  • 情似当年 2018-09-22 04:09

    Last login: Sat Sep 22 11:58:29 on ttys000
    -bash: /etc/profile: line 16: syntax error: unexpected end of file
    -bash-3.2$ echo $PATH
    /usr/local/bin/:./usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/bin:/Users/msmc/Downloads/android-sdk-macosx/tools:/Users/msmc/Downloads/android-sdk-macosx/platform-tools
    -bash-3.2$ cd ~
    -bash-3.2$ vim ~/.bash_profile

    JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home"
    export JAVA_HOME
    CLASS_PATH="$JAVA_HOME/lib"
    PATH=".$PATH:$JAVA_HOME/bin"
    alias daily='ssh -o ServerAliveInterval=30 -i /Users/msmc/Documents/pem/togetudaily.pem root@47.98.172.95'
    export ANDROID_HOME=/Users/msmc/Downloads/android-sdk-macosx
    export PATH=$PATH:$ANDROID_HOME/tools
    export PATH=$PATH:$ANDROID_HOME/platform-tools
    export PATH=/usr/local/bin/:$PATH
    你说的几个path都没有哎

    点赞 打赏 评论

相关推荐 更多相似问题