镜像地址:https://pypi.tuna.tsinghua.edu.cn/simple
不用镜像地址的话,经常会安装失败,例如ERROR: Could not find a version that satisfies the requirement robotframework (from versions: none) ERROR: No matching distribution found for robotframework。所以我这推荐用镜像地址下载。
例如原本安装命令是: pip install robotframework 。
加上镜像地址的命令是:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple robotframework
安装开始
1、安装robotframework
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple robotframework
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple wxPython==4.0.3
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple Pypubsub==3.3.0
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple robotframework-ride
2、安装辅助类
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple robotframework-requests
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple openpyxl
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple docutils
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple robotframework-selenium2library (安装selenium库,关键字驱动用例时使用)
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple robotframework-databaselibrary
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyCrypto
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple robotframework-sshlibrary (需要先安装pyCrypto,再执行这句)
运行:
在dos命令输入 ride.py 检查是否出现RIDE主界面,如不能出现,可去 python安装路径\scripts\ride.py 手动双击启动。或者将路径添加到环境变量就可以了。
参考
https://blog.csdn.net/weixin_43238531/article/details/107041561
https://blog.csdn.net/qq_38175040/article/details/107045155?utm_medium=distribute.pc_relevant.none-task-blog-baidujs-2