Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Generic User Avatar

Windows Not Recognising Python


  • Please log in to reply
7 replies to this topic

#1 Ishuheri

Ishuheri

  •  Avatar image
  • Members
  • 70 posts
  • OFFLINE
  •  
  • Gender:Female
  • Local time:10:44 PM

Posted 24 February 2021 - 11:31 AM

Hi everyone,

 

I've installed the latest version of Python (3.9.2) from their website: https://www.python.org/downloads/

 

When I go to apps (Windows 10, 64-bit), both Python and Python Launcher show as installed, but when I run CMD, it keeps telling me 'Python was not found.'

 

Any ideas?

 

Thanks.



BC AdBot (Login to Remove)

 


#2 Ishuheri

Ishuheri
  • Topic Starter

  •  Avatar image
  • Members
  • 70 posts
  • OFFLINE
  •  
  • Gender:Female
  • Local time:10:44 PM

Posted 24 February 2021 - 11:38 AM

Forget it - the answer was 'you have to download the Python app from the Windows app store.'

 

Because, of course, installing anything yourself would just be anarchy... I really need to consider Linux.



#3 ajetrumpet

ajetrumpet

  •  Avatar image
  • Banned Spammer
  • Member rank image
  • 625 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:03:44 PM

Posted 27 February 2021 - 11:42 PM

Forget it - the answer was 'you have to download the Python app from the Windows app store.'

that is NOT true.  you've got misinformation.  I have 8.x.x and I don't download ANYTHING from the ms store, EVER.  it works fine for me.  if you want good info, look at github threads.  all conversations you ever wanted to read are on that site.


Edited by ajetrumpet, 27 February 2021 - 11:43 PM.


#4 Ishuheri

Ishuheri
  • Topic Starter

  •  Avatar image
  • Members
  • 70 posts
  • OFFLINE
  •  
  • Gender:Female
  • Local time:10:44 PM

Posted 01 March 2021 - 02:05 AM

It was a reply on Stack Overflow that fixed the issue I had. I wasn't the only one facing it. I consider it good information because it worked for me when trying to install from Python didn't.



#5 cknoettg

cknoettg

  •  Avatar image
  • BC Advisor
  • 1,897 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Delray Beach, FL
  • Local time:04:44 PM

Posted 04 March 2021 - 09:14 PM

I like the elegance of the Microsoft Store solution.

But just to give some background on why the problem occurred:
A default installation of Python, Java, and other languages via MSI installer from the official websites does not necessarily tell Windows where the main Python, etc executables are located.

When you install it, you have to pay careful attention to the options the installer offers you. Make sure to add Python, etc to the PATH variable. Sometimes the installer directly offers that option. Sometimes it does not tell you directly.

The PATH variable tells the Windows command prompt where Python is located (Im oversimplifying, but I think you get my point).

If you forget to add Python to the PATH during installation, you can add it later. For Windows Vista and higher, one way to do that is to type env into the Windows search bar, select Edit System Environment Variables. Find the PATH variable, select Edit, and add C:\Python\bin, or whatever the path to the main Python executable is located.

I have been doing it this way for a long time, so I take it for granted that this is the way things are done.
Now that I have explained it, it sounds like a real pain in the neck.

So, by all means, install it from the Microsoft Store.

But keep in mind that every installation method has its Pros and Cons.

The version from the Microsoft Store may or may not be exactly the same as the official version. This may or may not be a problem, depending on your needs.

If you have a problem later with the Microsoft Store in general, your Python installation may be affected later (but the same could be said of problems with Windows in general, or Linux in general).

Microsoft MCE, CASP+, Linux+, Server+, Cloud+, Certified Forensic Computer Examiner


#6 Ishuheri

Ishuheri
  • Topic Starter

  •  Avatar image
  • Members
  • 70 posts
  • OFFLINE
  •  
  • Gender:Female
  • Local time:10:44 PM

Posted 05 March 2021 - 02:31 AM

Thanks for that detailed reply Cknoettg. That's really helpful.



#7 sflatechguy

sflatechguy

  •  Avatar image
  • BC Advisor
  • 2,770 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:03:44 PM

Posted 06 March 2021 - 03:23 PM

@cknoettg PATH environment for the win.

Same holds true for Linux. Installing it doesn't always add it to your PATH.

The quick and dirty workaround is to cd into the directory where the executable is located in the terminal shell, and call it from there. 



#8 Shplad

Shplad

  •  Avatar image
  • Members
  • 7,207 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:Canada
  • Local time:04:44 PM

Posted 25 April 2021 - 12:32 PM

I'll take Linux package managers over the Windows Store any day. Just 'sayin.


- Use this to collect and post information about your PC hardware, software and configuration (Whether or not you have crashing).

 

Blue Screen of Death (BSOD) Posting Instructions - Windows 10, 8.1, 8, 7 & Vista

https://www.bleepingcomputer.com/forums/t/576314/blue-screen-of-death-bsod-posting-instructions-windows-10-81-8-7-vista/

 

 





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users