ModuleNotFoundError: No module named 'robot' processing

In the process of building the robot framework environment, the execution of the test case reports an error

 Error while finding module specification for 'robot.run' (ModuleNotFoundError: No module named 'robot')

The reason for the error is that the environment does not recognize the robot framework, and check the python environment dependencies through the command line

pip list

 

It is found that the virtual environment does not have robotframework installed

Install via command line

 pip install robotframework

 Run it again and you can run the case normally.

 

Guess you like

Origin blog.csdn.net/Leisurely94/article/details/131084963