windows环境安装robotframework-ride

在Windows上安装RobotFrameworkRIDE需先安装Python和wxPython,接着安装RobotFramework,最后通过pip安装RIDE。若安装RIDE时遇到VC++要求,需下载相应版本。安装完成后,使用python-mrobotide.__init__或ride.py启动RIDE。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在Windows环境下,可以通过以下步骤安装Robot Framework RIDE:

  1. 安装Python

    首先,需要在Windows环境下安装Python。建议使用Python 3.x版本,可以从官方网站下载并安装:https://www.python.org/downloads/windows/

  2. 安装wxPython

    RIDE使用wxPython作为GUI工具包。可以通过以下命令来安装wxPython:

    pip install -U wxPython
    

  3. 安装Robot Framework

    可以通过以下命令来安装Robot Framework:

    pip install robotframework
    

  4. 安装Robot Framework RIDE

    安装完成Python、wxPython以及Robot Framework之后,可以通过以下命令来安装RIDE:

    pip install robotframework-ride
    

    注意:如果在安装RIDE时出现“Microsoft Visual C++ 14.0 is required”的提示,则需要安装Microsoft Visual C++ 14.0或更高版本。可以访问以下网址下载并安装:https://visualstudio.microsoft.com/visual-cpp-build-tools/

  5. 启动RIDE

    安装成功后,通过以下命令启动RIDE:

    python -m robotide.__init__
    

    或者,也可以通过命令行界面在任意目录下输入“ride.py”启动RIDE:

    ride.py
    

以上就是在Windows环境下安装Robot Framework RIDE的步骤。

(AutoRobot230303) PS D:\code\AutoRobot> allure open allure-report
Starting web server...
2023-07-05 16:37:07.699:INFO::main: Logging initialized @289ms to org.eclipse.jetty.util.log.StdErrLog
Server started at <http://192.168.7.97:52539/>. Press <Ctrl+C> to exit
终止批处理操作吗(Y/N)? y
(AutoRobot230303) PS D:\code\AutoRobot> pip install -U wxPython
Collecting wxPython
  Downloading wxPython-4.2.1-cp311-cp311-win_amd64.whl (17.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 17.8/17.8 MB 58.5 kB/s eta 0:00:00
Requirement already satisfied: pillow in d:\code\autorobot230303\lib\site-packages (from wxPython) (9.4.0)
Requirement already satisfied: six in d:\code\autorobot230303\lib\site-packages (from wxPython) (1.16.0)  
Requirement already satisfied: numpy in d:\code\autorobot230303\lib\site-packages (from wxPython) (1.24.2)
Successfully installed wxPython-4.2.1
[notice] To update, run: python.exe -m pip install --upgrade pip
  Downloading robotframework-ride-2.0.6.zip (1.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 45.9 kB/s eta 0:00:00
Collecting PyPubSub
  Downloading Pypubsub-4.0.3-py3-none-any.whl (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.4/61.4 kB 204.5 kB/s eta 0:00:00
Collecting Pygments
  Downloading Pygments-2.15.1-py3-none-any.whl (1.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 146.6 kB/s eta 0:00:00
Collecting psutil
  Downloading psutil-5.9.5-cp36-abi3-win_amd64.whl (255 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 255.1/255.1 kB 127.4 kB/s eta 0:00:00
Requirement already satisfied: wxPython in d:\code\autorobot230303\lib\site-packages (from robotframework-ride) (4.2.1)
Collecting Pywin32
  Downloading pywin32-306-cp311-cp311-win_amd64.whl (9.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.2/9.2 MB 293.7 kB/s eta 0:00:00
Requirement already satisfied: pillow in d:\code\autorobot230303\lib\site-packages (from wxPython->robotframework-ride) (9.4.0)
Requirement already satisfied: six in d:\code\autorobot230303\lib\site-packages (from wxPython->robotframework-ride) (1.16.0)
Requirement already satisfied: numpy in d:\code\autorobot230303\lib\site-packages (from wxPython->robotframework-ride) (1.24.2)
Building wheels for collected packages: robotframework-ride
  Building wheel for robotframework-ride (setup.py) ... done
  Created wheel for robotframework-ride: filename=robotframework_ride-2.0.6-py3-none-any.whl size=1436889 sha256=cf9e4c9c98f9688eeb18fdef1114733235c685b8e7a7e8449df3b898cec6d893
  Stored in directory: c:\users\songpy\appdata\local\pip\cache\wheels\97\81\3a\0d4dead6d6fada695df4791c0d018e8189f7bd912d49af2402
Successfully built robotframework-ride
Installing collected packages: Pywin32, PyPubSub, Pygments, psutil, robotframework-ride
Successfully installed PyPubSub-4.0.3 Pygments-2.15.1 Pywin32-306 psutil-5.9.5 robotframework-ride-2.0.6

[notice] A new release of pip is available: 23.0.1 -> 23.1.2
[notice] To update, run: python.exe -m pip install --upgrade pip
(AutoRobot230303) PS D:\code\AutoRobot> python -m robotide.__init__

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值