# \`'robot' is not recognized as an internal or external command, operable program or batch file.\`

**URL:** <https://forum.robotframework.org/t/robot-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file/6579>\
**Category:** Robot Framework\
**Created:** [21 December 2023 18:21 UTC](https://forum.robotframework.org/t/robot-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file/6579 "2023-12-21T18:21:19Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmgprado](https://avatars.discourse-cdn.com/v4/letter/b/f17d59/32.png) [@bmgprado](https://forum.robotframework.org/u/bmgprado)\
**Post date:** [21 December 2023 18:21 UTC](https://forum.robotframework.org/t/robot-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file/6579/1 "2023-12-21T18:21:20Z")

</div>

I have pip and robot framework installed.  
When I execute the commando:  
`robot --version`  
I get the error:  
`'robot' is not recognized as an internal or external command, operable program or batch file.`

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/7/74453d9fcdb8e15c43914a7c0b8feff8f5228ba8.png)

---

<div class="post-metadata">

**Author:** ![shuklapratik](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@shuklapratik](https://forum.robotframework.org/u/shuklapratik)\
**Post date:** [21 December 2023 21:17 UTC](https://forum.robotframework.org/t/robot-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file/6579/2 "2023-12-21T21:17:14Z")

</div>

As you can see from the provided image, you have two installations of pythons…  
1st one in Appdata\Roaming\Python  
and  
2nd one in C:\Python312\

If you don’t need both then I’d suggest to remove the 1st one.

So, the problem here is, your robot framework is in your 2nd location and PATH variable is set for your 1st location, removing one python and setting the correct PATH variable will resolve this issue.

Hope this was helpful. 😄

---

<div class="post-metadata">

**Author:** ![bmgprado](https://avatars.discourse-cdn.com/v4/letter/b/f17d59/32.png) [@bmgprado](https://forum.robotframework.org/u/bmgprado)\
**Post date:** [22 December 2023 12:28 UTC](https://forum.robotframework.org/t/robot-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file/6579/3 "2023-12-22T12:28:24Z")

</div>

I removed the on in …/AppData/… but the error persists.  
Also, when I try to update pip using the command indicated, I get this error.

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/3/38120ccbbe02511a27a5aafb45b5aba0f0507c4b.png)

---

<div class="post-metadata">

**Author:** ![orenault](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/orenault/32/3267_2.png) [@orenault](https://forum.robotframework.org/u/orenault)\
**Post date:** [27 December 2023 11:26 UTC](https://forum.robotframework.org/t/robot-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file/6579/4 "2023-12-27T11:26:09Z")

</div>

What is the content of the PATH variable ?

---

<div class="post-metadata">

**Author:** ![bmgprado](https://avatars.discourse-cdn.com/v4/letter/b/f17d59/32.png) [@bmgprado](https://forum.robotframework.org/u/bmgprado)\
**Post date:** [27 December 2023 15:22 UTC](https://forum.robotframework.org/t/robot-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file/6579/5 "2023-12-27T15:22:33Z")

</div>

User variables  
 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/c/c5e84a54318108a05c60659aa5da97b510d980fe.png)

---

<div class="post-metadata">

**Author:** ![bmgprado](https://avatars.discourse-cdn.com/v4/letter/b/f17d59/32.png) [@bmgprado](https://forum.robotframework.org/u/bmgprado)\
**Post date:** [27 December 2023 15:23 UTC](https://forum.robotframework.org/t/robot-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file/6579/6 "2023-12-27T15:23:34Z")

</div>

System variables  
 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/2/2341c33dc50501e99153f65ec8959792f5657cf7.png)

---

<div class="post-metadata">

**Author:** ![orenault](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/orenault/32/3267_2.png) [@orenault](https://forum.robotframework.org/u/orenault)\
**Post date:** [27 December 2023 16:42 UTC](https://forum.robotframework.org/t/robot-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file/6579/7 "2023-12-27T16:42:22Z")

</div>

Robot.exe is stored in the \Scripts subdir.  
On your installation, robot.exe should be in the directory C:\Python312\Scripts  
So first, checks if it is the case.

This dir is already defined in your PATH, so it should be found correctly.

If you didn’t close the DOS cmd after the installation, close and reopen.

You can try after:  
where python  
where robot  
echo %PATH%  
pip freeze

---

<div class="post-metadata">

**Author:** ![bmgprado](https://avatars.discourse-cdn.com/v4/letter/b/f17d59/32.png) [@bmgprado](https://forum.robotframework.org/u/bmgprado)\
**Post date:** [28 December 2023 13:50 UTC](https://forum.robotframework.org/t/robot-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file/6579/8 "2023-12-28T13:50:18Z")

</div>

(sorry for multiple replies, I can only add 1 picture per comment)

I realized I do not have robot.exe anywhere, although I installed everything.

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/b/bb70dbb084f84be17d2923ea02f459e806e3acf5.png)

---

<div class="post-metadata">

**Author:** ![bmgprado](https://avatars.discourse-cdn.com/v4/letter/b/f17d59/32.png) [@bmgprado](https://forum.robotframework.org/u/bmgprado)\
**Post date:** [28 December 2023 13:52 UTC](https://forum.robotframework.org/t/robot-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file/6579/9 "2023-12-28T13:52:19Z")

</div>

I closed DOS and also rebooted the PC after each installation (python, pip, robot).

About the other commands:

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/4/428e3355e01b96b233170ab7a8a4f48425204965.png)

---

<div class="post-metadata">

**Author:** ![bmgprado](https://avatars.discourse-cdn.com/v4/letter/b/f17d59/32.png) [@bmgprado](https://forum.robotframework.org/u/bmgprado)\
**Post date:** [28 December 2023 22:42 UTC](https://forum.robotframework.org/t/robot-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file/6579/10 "2023-12-28T22:42:39Z")

</div>

I searched for `robot` and got this:

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/7/7d57057adca8df0790afb3996362401d9fee8204.png)

---

<div class="post-metadata">

**Author:** ![bmgprado](https://avatars.discourse-cdn.com/v4/letter/b/f17d59/32.png) [@bmgprado](https://forum.robotframework.org/u/bmgprado)\
**Post date:** [29 December 2023 01:56 UTC](https://forum.robotframework.org/t/robot-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file/6579/11 "2023-12-29T01:56:11Z")

</div>

I could get the robot version with these commands:

> ```
> python3.12 -m robot --version
> py -3.12 -m robot --version
> 
> ```

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/d/decf50008152c8278d8b9beea06699718b1ad007.png)

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [29 December 2023 04:10 UTC](https://forum.robotframework.org/t/robot-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file/6579/12 "2023-12-29T04:10:01Z")

</div>

Perhaps something went awry in the install.

Maybe try using the pip `--force-reinstall` option and reinstall robot framework.

Hopefully this will fix things for you 🤞

Dave.
