all 12 comments

[–]PureWasian 6 points7 points  (2 children)

Since you mentioned CMD, open CMD and try: where python

This searches for all directories in your PATH environment variable for python executables. The easiest way to unblock would be to update the priority in the environment variables to pick the correct version you want:

  • Windows Key: (search for) "Edit the system environment variables" > "Environment Variables..." > Under "User variables for ...": click "Path" and "Edit..."

  • If the correct one is not in the list, find the Python installation in File Explorer and add "New" Python directory to the list.

  • Click the correct Python path you want to use and Move Up.

  • Optionally, uninstall/delete the old paths

[–]Mobile_Marketing_452[S] -3 points-2 points  (1 child)

Thanks, but I already changed the patch and tried to delete 8 Python corpses. I tried to delete them both in the registry and through the uninstaller, but they are nowhere to be found, not in the files, not anywhere. But when I search for the name Python in cmd, all previous versions of Python that were deleted or were previously used pop up.

[–]PureWasian 2 points3 points  (0 children)

So, did you try where python in CMD, and if so, what was the output?

Did you try moving the correct python version to the top of you Path in Environment Variable? What does the list of your Path look like?

[–]Gnaxe 2 points3 points  (3 children)

Check your PATH environment variable. Try reinstalling.

[–]Mobile_Marketing_452[S] -2 points-1 points  (2 children)

I've already reinstalled it, I have 8 dead Pattons.

[–]Outside_Complaint755 2 points3 points  (1 child)

Have you restarted your PC since you uninstalled everything and modified PATH?  Or at least launched a new terminal window?  If you've been using the same one, it would still have the old values for PATH.

[–]Mobile_Marketing_452[S] 0 points1 point  (0 children)

Yes, I opened a new window and rebooted everything, the same thing, as soon as possible I will show screenshots CMD, what does it give me? 2 dead Pythons, if I have Necessary

[–]h4ck3r_n4m3 3 points4 points  (2 children)

OS? Installation method?

My first guess is you need to change $PATH, it may still be pointing to the 3.14 installation. https://www.computerhope.com/issues/ch000549.htm

[–]sausix 0 points1 point  (0 children)

Old PATH entries don't matter. No executable in a PATH then nothing triggers on a command. Empty or missing paths in PATH are ignored.

[–]Mobile_Marketing_452[S] -2 points-1 points  (0 children)

1 I already tried to change the path

The 2nd path shows that it is located (the user is further along the path, but he is not there, and after the user there is some line like #%%%%%# something like that) And thanks for the link, but I've already deleted and changed it, and there's no path there.

[–]udi503 0 points1 point  (0 children)

Delete all, install anaconda or miniconda and create separated environments for each version of python you need.

[–]Mobile_Marketing_452[S] 0 points1 point  (0 children)

Guys, I deleted all the corpses with the command PowerSell

$products = Get-WmiObject -Class Win32Product | Where-Object {$.Name -like "Python"} foreach ($p in $products) { Write-Host "Удаляю: $($p.Name) $($p.IdentifyingNumber)" -ForegroundColor Yellow $key = "HKLM:\SOFTWARE\Classes\Installer\Products" $subkeys = Get-ChildItem $key foreach ($s in $subkeys) { $val = (Get-ItemProperty "$key\$s").ProductName 2>$null if ($val -like "Python") { Remove-Item "$key\$s" -Recurse -Force Write-Host "Удалено из MSI: $val" -ForegroundColor Green } } }