鏡像位址: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