搭建robot_framework 环境 找不到 wxPython2.8.12.1的解决方法
1.mac终端pip安装robotframework-ride后 启动ride.py报: wxPython not found. You need to install wxPython 2.8.12.1 with unicode support to run RIDE.

于是pip安装wxPython 2.8.12.1
报:找不到2.8.12.1版本
根据提示去网址去下载wxPython 2.8.12.1。
http://sourceforge.net/projects/wxpython/files/wxPython/2.8.12.1/

2.载后双击解压dmg

3.再右击pkg文件--显示包内容

4.双击解压该文件wxPython2.8-osx-unicode-universal-py2.7.pax.gz
将解压文件中的usr/local的lib文件复制到系统usr/local中

cp -r lib /usr/local
其是个隐藏文件。打开方式:
Mac下/usr/local目录默认是对于Finder是隐藏,如果需要到/usr/local下去,打开Finder,然后使用command+shift+G,在弹出的目录中填写/usr/local就可以了。
5.将第3步中的postflight复制到桌面,cd到post flight所在的目录(cp /Volumes/wxPython2.8-osx-unicode-2.8.12.1-universal-py2.7/wxPython2.8-osx-unicode-universal-py2.7.pkg/Contents/Resources/postflight Desktop/)
6.运行命令
sudo ./postflight
7.运行ride.py,
提示python驱动是32位的.
python should be executed in 32-bit mode with wxPython on OSX.

因为我们安装的是64位的
所以需要强制执行为32位,执行命令:
defaults write com.apple.versioner.python Prefer-32-Bit -bool yes
再执行ride.py,

最后解决的方法:
我直接使用了pip去装
pip升级库命令
pip install 库名
pip install --upgrade 库名
最后 
|