Installing Robot Framework

Before installation

It is advisable to set up a virtual environment in any convenient way for you. This example uses venv

python -m venv venv
source venv/bin/activate
python -m pip install --upgrade pip

Installation

Using pip

python -m pip install robotframework

Collecting robotframework Using cached robotframework-5.0-py3-none-any.whl (638 kB) Installing collected packages: robotframework Successfully installed robotframework-5.0

Check the version

You can check the version of the installed RobotFramework in several ways.

python -m pip list

Package Version -------------- ------- pip 22.0.4 robotframework 5.0 setuptools 56.0.0

robot --version

Robot Framework 5.0 (Python 3.9.5 on linux)

If you get the error

Command 'robot' not found, did you mean: command 'probot' from snap probot (1.0) command 'root' from snap root-framework (v6-24-06) command 'robots' from deb bsdgames (2.17-28build1) See 'snap info <snapname>' for additional versions.

Try

python -m robot --version

If you wish, you can create an alias robot="python -m robot"

Article author: Andrei Olegovich