Conda下 python3+Robotframework+Mac mojave 安装 (含 RIDE 2.0)

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. 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

youcharming

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值