# Error while running python command

**URL:** <https://forum.codewithmosh.com/t/error-while-running-python-command/5987>\
**Category:** Python\
**Created:** [July 7, 2021, 10:14pm UTC](https://forum.codewithmosh.com/t/error-while-running-python-command/5987 "2021-07-07T22:14:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alistair](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@Alistair](https://forum.codewithmosh.com/u/Alistair)\
**Post date:** [July 7, 2021, 10:14pm UTC](https://forum.codewithmosh.com/t/error-while-running-python-command/5987/1 "2021-07-07T22:14:33Z")

</div>

When I run python app.py (Windows 10) in the terminal it says : ‘python’ is not recognized as an internal or external command, operable program or batch file. How do I fix this?

---

<div class="post-metadata">

**Author:** ![SAM](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/sam/32/167_2.png) [@SAM](https://forum.codewithmosh.com/u/SAM)\
**Post date:** [July 8, 2021, 4:23pm UTC](https://forum.codewithmosh.com/t/error-while-running-python-command/5987/2 "2021-07-08T16:23:04Z")

</div>

Did you add Python to your PATH as Mosh told you in the “Installing Python” video? If so, did you reboot?

---

<div class="post-metadata">

**Author:** ![Alistair](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@Alistair](https://forum.codewithmosh.com/u/Alistair)\
**Post date:** [July 10, 2021, 12:37pm UTC](https://forum.codewithmosh.com/t/error-while-running-python-command/5987/3 "2021-07-10T12:37:30Z")

</div>

I actually had to reinstall python and it worked, thanks tho
