Sublime Forum

Python not found in computer

#1

I have installed python 3.8 in my computer and it runs well in the command prompt and the idle, but when I run the python commands from sublime it says that python was not found in your computer but can be installed from windows store. Please help me fix this. Thank you in advance.

0 Likes

#2

What command do you run in order to run Python from the command prompt?

0 Likes

#3

Python -version
Thats all.

0 Likes

#4

Can you paste in the contents of the build output window for a failing build as well?

Generally speaking, if you try to run a program that doesn’t exist on windows, you get a message about it being an unknown command or batch file. If you’re getting a message that tells you to go to the windows store that sounds more like it’s successfully running something, and that something is what’s telling you that you need to set up something else.

0 Likes

#5

What do you mean? I really didn’t understand. But the console output is same for any code I write. The same thing is happening even with atom ide.

0 Likes

#6

I’ve had a problem similar to this in windows recently. This might help: https://stackoverflow.com/questions/56974927/permission-denied-trying-to-run-python-on-windows-10

2 Likes

#7

How are you trying to run the “python commands” from sublime ? If possible, list the steps that you took to do this so that the community can help in debugging your problem.

0 Likes

#8

@Dexter6728, the link by @bschaaf seems to describe well the problem.

My advise is to install Python via the Chocolatey Python package — Chocolatey is a sort of “package manager” for Windows, allowing to easily keep up to date languages and programs that don’t self update.

The Chocolatey Python package isn’t affected by the problems you’re experiencing for it has no connections with the Windows Store.

Chocolatey is also available as a graphic front end via Chocolatey GUI.

0 Likes

#9

So you say that I reinstall python using Chocolatey Python package. I will give a try let’s see what happens.

0 Likes

#10

The second part of correcting it is to type “manage app execution aliases” into the Windows search prompt and disable the store versions of Python altogether.

Might also just work

0 Likes

#11

Sorry forgot to say I just solved the problem and thanks bschaaf for that. :grin::grin:

0 Likes