Reputation: 1188
I installed Python2.7.12
and then installed robotframework using the below command
python -m pip install robotframework
it showed the result as installed successfully.
When i have given the command pybot --version
it showed as
'pybot' is not recognized as an internal or external command
In environment variables python home set as C:\Python27 and C:\Python27\Scripts are set.
Please any can help me what can be reason for error
Thanks Sarada
Upvotes: 6
Views: 32030
Reputation: 21
If there is no pybot.bat file, then create a pybot.bat file and add robot %* inside this file. Add the path of this file to %PATH environment variable.
https://github.com/robotframework/RIDE/issues/1468#issuecomment-366524912
Upvotes: 1
Reputation: 895
For python 3, use robot
instead of pybot
All thanks to @saurav
Upvotes: 1
Reputation: 51
Following steps worked for me:
Upvotes: 3
Reputation: 1
setup following in the environment variable PATH C:\Python27; C:\Python27\Scripts C:\Python27\Lib\site-packages\robot; and also browser.exe path
Worked for me.
Upvotes: 0
Reputation: 39
I added
C:\Python27\Scripts
along with below values in System Variables' PATH variable.
C:\Python27\Lib\site-packages\robot;
C:\Python27;
C:\Python27\bin;
Only then it worked.
Also every time you update environment variables you need to relaunch your cmd/powershell window or reload environment variables for changes to reflect.
Upvotes: 0
Reputation: 1188
Need to setup following in the environment variable PATH
C:\Python27\Lib\site-packages\robot;
C:\Python27;
C:\Python27\bin;
Thanks for your help JohnMayer and Waman.
It is working fine now
Upvotes: 5