# Python not found...?

**URL:** <https://forum.codewithmosh.com/t/python-not-found/2025>\
**Category:** Python\
**Created:** [January 17, 2021, 1:29pm UTC](https://forum.codewithmosh.com/t/python-not-found/2025 "2021-01-17T13:29:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Megha](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/megha/32/1136_2.png) [@Megha](https://forum.codewithmosh.com/u/Megha)\
**Post date:** [January 17, 2021, 1:29pm UTC](https://forum.codewithmosh.com/t/python-not-found/2025/1 "2021-01-17T13:29:06Z")

</div>

Hey there, I am not new to _ **Python** _. But, I just stopped coding for a few months. Then I decided to uninstall Python from my device.

After a while, I decided to resume my coding journey… But when I installed Python _again_ and opened VS Code I saw this:

 ![2021-01-17_LI](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/1X/ff9601110b682cc876f81aae64b2d1c0b396f8ea.jpeg)

I don’t understand why I see this 🤔. Please help me sort out this mess.

Thanks in advance!! 😁

---

<div class="post-metadata">

**Author:** ![NicolasATC](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/nicolasatc/32/714_2.png) [@NicolasATC](https://forum.codewithmosh.com/u/NicolasATC)\
**Post date:** [January 20, 2021, 5:47pm UTC](https://forum.codewithmosh.com/t/python-not-found/2025/2 "2021-01-20T17:47:03Z")

</div>

Did you solve this problem?

A simple but effective way to check if python is correctly installed is:

1. Click on WIN key
2. write: CMD. A black terminal will open
3. write: python  
only the word ‘python’ … don’t include the ‘’
4. if python is correctly installed, you will see the version.
5. if python is not found, do 2 things.  
------ 5.1 uninstall python and install it with right click and execute as Admin.  
------ 5.2 when installing again, double check that you ADD THE PATH. It’s on the first page of the installation process.
6. Once install is complete, go back to step 1.

Hope this helps

---

<div class="post-metadata">

**Author:** ![Megha](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/megha/32/1136_2.png) [@Megha](https://forum.codewithmosh.com/u/Megha)\
**Post date:** [January 21, 2021, 4:54am UTC](https://forum.codewithmosh.com/t/python-not-found/2025/3 "2021-01-21T04:54:33Z")

</div>

![Screenshot 2021-01-21 102248](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/1X/1e01315416d863f18cf9ae39cc0d8c9a3d635bf0.png)

 ![Screenshot 2021-01-21 102241](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/1X/938f2ee08a7e93faef1c723ced1b931afa89809f.png)

---

<div class="post-metadata">

**Author:** ![NicolasATC](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/nicolasatc/32/714_2.png) [@NicolasATC](https://forum.codewithmosh.com/u/NicolasATC)\
**Post date:** [January 21, 2021, 4:08pm UTC](https://forum.codewithmosh.com/t/python-not-found/2025/4 "2021-01-21T16:08:22Z")

</div>

ok…Python is installed. I see the problem now.

Whenever you want to run a python script, always start like this:

python fizz\_buzz.py

Write ‘python’ first and then the name of the file to execute (python without the ‘’)

Let me know if that worked.

---

<div class="post-metadata">

**Author:** ![Megha](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/megha/32/1136_2.png) [@Megha](https://forum.codewithmosh.com/u/Megha)\
**Post date:** [January 22, 2021, 2:56am UTC](https://forum.codewithmosh.com/t/python-not-found/2025/5 "2021-01-22T02:56:32Z")

</div>

![2021-01-22](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/1X/be6aac01ece2fd9929cf4d05c6969449c282481a.png)

It worked 😇! I don’t know how? It didn’t work yesterday tho…

---

<div class="post-metadata">

**Author:** ![Megha](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/megha/32/1136_2.png) [@Megha](https://forum.codewithmosh.com/u/Megha)\
**Post date:** [January 22, 2021, 2:57am UTC](https://forum.codewithmosh.com/t/python-not-found/2025/6 "2021-01-22T02:57:17Z")

</div>

Thanks, @NicolasATC for your patience and help.

---

<div class="post-metadata">

**Author:** ![NicolasATC](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/nicolasatc/32/714_2.png) [@NicolasATC](https://forum.codewithmosh.com/u/NicolasATC)\
**Post date:** [January 22, 2021, 1:18pm UTC](https://forum.codewithmosh.com/t/python-not-found/2025/7 "2021-01-22T13:18:29Z")

</div>

Great to know it’s working now! 😀

in VS code sometimes this happens to me too. I’ve realized that the file path is not correct, so I have to navigate to the correct path… which is weird, but it has happened.

There is another way to execute python code and it’s thru the command itself. In Windows, using the Windows explorer, navigate to where the python file is and then at the top (where you see the path) make a click and the whole path will become blue. There you write: ‘CMD’ without the ‘’. The command terminal will show up in the correct path. So, you just write: python file.py and the file will open using python. To avoid writing ‘python file.py’ everytime you need to run your code, just press the up arrow, and the historic of commands will be there. I hope this makes sense.

In this video, at 00:47, it’s shown: [Windows 10 How to Open Command Prompt in Current Folder or Directory - YouTube](https://www.youtube.com/watch?v=bgSSJQolR0E)

I’m glad I could help you… keep coding!
