1. install aconda3
Anaconda | Individual Edition 这个网址下下载py3的包,安装
2.创建一个py3的env
conda create py38 python=3.8 创建python 3.8 环境
3.激活py38的环境
conda activate py38
4. 安装pip3
wget https://bootstrap.pypa.io/get-pip.py
python3 get-pip.py
whichi pip3 确认是否安装成功
5. 安装robotframework
pip3 install robotframework
6.装 wxPython 4.0.7 post2 version
浏览器访问:wxPython · PyPI
Download File》点击文件名 wxPython-4.0.7.post2-cp38-cp38-macosx_10_9_x86_64.whl
Cpxx 表示 python 版本,请务必要和 python 版本匹配
pip3 install ~/Downloads/wxPython-4.0.7.post2-cp38-cp38-macosx_10_9_x86_64.whl
(py38) admins-MacBook-Pro-6:bin charly$ pip3 list | grep wx
wxPython 4.0.7.post2
7.装 robotFramework-ride 2.0b1 版本
pip3 install robotframework-ride==2.0b1
pip3 install robotframeworklexer # 可以用来语法突出的插件好用!
8. conda 环境中,如果有pythonWx pythonwx 先移除他们
# uninstall all versions of pythonWx
pip uninstall pythonWx -y
conda remove pythonwx
# install the python.app binary through conda
conda install python.app
# that previous command returns something like:
# /opt/anaconda320/anaconda3/condabin/conda
# replace the condabin/conda with bin/python.app
# and run the result in a terminal
/opt/anaconda320/anaconda3/bin/python.app
# that should open a Python terminal (you know you're in the Python
# terminal if you see >>> as a prefix for your shell)
# import the python package manager and install wxPython to
# your python.app version of Python
import pip
pip.main(['install', 'wxPython'])
# exit the python interpreter
exit()
9. 运行 ride.py
cd /opt/anaconda320/anaconda3/envs/py38/bin/
sudo ln -s /opt/anaconda320/anaconda3/lib/python3.8/site-packages/robotframework_ride-2.0b1-py3.8.egg/EGG-INFO/scripts/ride.py ./ride.py
sudo ln -s /opt/anaconda320/anaconda3/bin/python.app ./python.app
#use
/opt/anaconda320/anaconda3/bin/python.app /opt/anaconda320/anaconda3/lib/python3.8/site-packages/robotframework_ride-2.0b1-py3.8.egg/EGG-INFO/scripts/ride.py
#or use
pyton.app ride.py
then you can see
RIDE -- Robot Framework Test Data Editor
RIDE v2.0b1 running on Python 3.8.1.
RIDE is a test data editor for Robot Framework. For more information, see project pages at https://github.com/robotframework/RIDE.
Some of the icons are from Silk Icons.