Sarada Akurathi
Sarada Akurathi

Reputation: 1188

'pybot' is not recognized as an internal or external command

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

Answers (6)

Naveen Naik
Naveen Naik

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

Viktor Ilienko
Viktor Ilienko

Reputation: 895

For python 3, use robot instead of pybot

All thanks to @saurav

Upvotes: 1

Vipul Sonar
Vipul Sonar

Reputation: 51

Following steps worked for me:

  1. Add C:\Python27\Scripts to the path environment variable
  2. Create pybot.bat file inside above location and put robot %* this content.

Upvotes: 3

user13958681
user13958681

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

girkot1307
girkot1307

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

Sarada Akurathi
Sarada Akurathi

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

Related Questions