问题
While running the command pybot --version
I'm getting the error
from robot import run_cli ImportError: No module named robot
I have already installed robotframework 3.0 with python after downloading the module with its setup.py file.
I tried installing and reinstalling it multiple times.
Also I have verified the environment variables for the same which also seems to be inline with what I have installed.
I checked in the site-packages also where I am able to see robotframework 3.0 present in them.
I checked in the /usr/local/bin
as well as /home/.local/bin
folder I can see both robot and pybot available. But for running the command robot --version
also it is showing the same error.
I really don't know what is missing.
My Environment:
- Ubuntu 16.04
- python 2.76
- robotframework 3.0
Thanks in Advance!
回答1:
I have little experience on installing the ROBOT Framework in linux machine. But just check whether you have done the following:
- How did you install ROBOT Framework? Is it by pip command or with the downloaded source file? Have you tried with pip command if any?
- Set python path in your environment path/variables. Example in windows, C:\Python27\
- Set python scripts folder in your environment path/variables. Example in windows C:\Python27\Scripts
Last, maybe you can share the output of your 'pip list' command? So, just want to see what are the modules/packages that you have installed.
来源:https://stackoverflow.com/questions/54540608/getting-the-error-from-robot-import-run-cli-importerror-no-module-named-robot