Как удалить python с компьютера виндовс 10
Перейти к содержимому

Как удалить python с компьютера виндовс 10

  • автор:

Completely Uninstall Python From Windows

Completely Uninstall Python From Windows

  1. Permanently Unistall Python Using the Control Panel
  2. Permanently Uninstall Python Using the Command Prompt

Python software has many bugs that need fixing from time to time. There are also many types of packages and libraries in Python that get outdated. Due to these reasons, it’s always necessary to uninstall the old Python software version and download the updated one to make the most of it, while writing any program. Hence, there are different ways to uninstall the Python software’s older version in different operating systems like Mac, Windows, and Linux.

This tutorial focuses more on demonstrating how to uninstall the Python Software from a Windows device permanently.

Permanently Unistall Python Using the Control Panel

Check for the Installed Python Version.

You can use your system’s command prompt to check the installed Python software on your device. Type the following command to see the installed version that is present in the system and press enter.

python - V 

After pressing Enter , the current version of the Python software will be returned. Below is the output.

python 2.7.0 
Use the Control Panel to Uninstall Python.
Re-check for Installed Python Versions.

Again type the command mentioned in STEP 1 in the command prompt to check whether the Python Software is still installed or not. After pressing Enter, the following statement should be displayed by the command prompt.

'python' is not recognized as an internal or external command, operable program, or batch file. 

Note that these steps are valid for any version of Python installed on the computer, like Python 2.7.0 , Python 3.7.0 , or any other.

Permanently Uninstall Python Using the Command Prompt

Open the command prompt of the Windows system.
Define a proper path to access the Python file using the cd keyword in the command prompt. Look at the guide below.
cd C:\Users\Name\Library\FileName\Python 
Use the del keyword to delete the Python file after accessing it and press Enter.
del python2.exe 

After running the command above, any other Python versions can be installed using any open source such as Anaconda Navigator .

Lakshay Kapoor is a final year B.Tech Computer Science student at Amity University Noida. He is familiar with programming languages and their real-world applications (Python/R/C++). Deeply interested in the area of Data Sciences and Machine Learning.

Related Article — Python Uninstall

Как удалить python и все что с ним связано(pip, IDLE, все библиотеки ранее скачанные)?

У меня вечно какие-то проблемы с python и библиотеками, поэтому я собираюсь переустановить python и все что с ним связано. Однако, когда я пытался это сделать, удалился лишь сам python, а pip и все библиотеки установленные им остались. Подскажите, пожалуйста, как удалить все данные связанные с python? ОС: Windows 10

Отслеживать

задан 5 июн 2020 в 11:38

79 1 1 золотой знак 1 1 серебряный знак 10 10 бронзовых знаков

Саму папку питона с либами чистили?

5 июн 2020 в 12:29

Ну и ещё: про какую ОС речь?

5 июн 2020 в 12:30

Я использую Windows

5 июн 2020 в 12:38

если есть время, то лучше выполните сброс Windows 10 до заводских настроек »’ в Windows 10 предусмотрен способ вернуть ОС в первоначальное состояние, сбросив систему до заводских настроек. Полный сброс очищает жесткий диск и переустанавливает Windows, поэтому никакие личные данные, программы и файлы не сохраняются.»’

5 июн 2020 в 12:43

А где эта папка с библиотеками находится если не сложно?

Не могу удалить python

введите сюда описание изображения

при попытке удалить python появляется ошибка. Удалял через приложения в windows. Перегуглил всё что мог, но так ничего и не помогло.(version: 3.10.7) log: https://drive.google.com/file/d/15TXzj50xcB8gO_CjS7hh0SKCcsIplGzP/view?usp=share_link Информативная часть лога, видимо, имеющая отношение к ошибке:

Applying execute package: path_JustForMe, action: Uninstall, path: (null), arguments: ' ARPSYSTEMCOMPONENT="1" MSIFASTINSTALL="7" TARGETDIR="C:\Users\Костьян\AppData\Local\Programs\Python\Python310" OPTIONALFEATURESREGISTRYKEY="Software\Python\PythonCore\3.10\InstalledFeatures"' Error 0x80070643: Failed to uninstall MSI package. Error 0x80070643: Failed to configure per-user MSI package. Applied execute package: path_JustForMe, result: 0x80070643, restart: None Error 0x80070643: Failed to execute MSI package. 

Отслеживать

69.6k 5 5 золотых знаков 20 20 серебряных знаков 51 51 бронзовый знак

задан 18 фев 2023 в 8:21

59 6 6 бронзовых знаков

Ну выложите куда-нибудь этот log file . Ну или попытайтесь из него что-то значимое извлечь. Возможно, там не только про эту установку написано, опять же, выкиньте лишнее.

18 фев 2023 в 8:35

хорошо, я вставил ссылку на лог

18 фев 2023 в 8:48

Пробовали от администратора запускать деинсталляцию? Я добавил в вопрос ту часть лога, которая по-моему основная для разбора ошибки.

18 фев 2023 в 8:53

я тоже посмотрел логи до этого, но забыл добавить, что по этому пути нет такого файла

How to completely remove Python from a Windows machine?

I installed both Python 2.7 and Python 2.6.5. I don’t know what went wrong, but nothing related to Python seems to work any more. e.g. «setup.py install» for certain packages don’t recognize the «install» parameter and other odd phenomena. I would like to completely remove Python from my system.
I tried running the 2.7 and 2.6 msi files and choosing remove Python and then running only 2.6 and reinstalling it. Still stuff don’t work. How do I completely remove Python — from everything? (!) I would not like to reinstall my entire machine just because of the Python install.

asked Aug 18, 2010 at 18:59
Jonathan Livni Jonathan Livni
103k 105 105 gold badges 268 268 silver badges 360 360 bronze badges

I’ve discovered that the «odd phenomena» occurred due to a 3rd python installation that was installed without my notice by a buildout script.

Aug 24, 2010 at 12:45

The trick appears to be figuring out where a particular installation came from. In my case, I have two that are not from chocolatey, pip, or the control panel. Trying to figure out what else might have done it.

Jun 15, 2023 at 19:31

15 Answers 15

Here’s the steps (my non-computer-savvy girlfriend had to figure this one out for me, but unlike all the far more complicated processes one can find online, this one works)

  1. Open Control Panel
  2. Click «Uninstall a Program»
  3. Scroll down to Python and click uninstall for each version you don’t want anymore.

This works on Windows 7 out of the box, no additional programs or scripts required.

answered Aug 25, 2013 at 15:08
ArtOfWarfare ArtOfWarfare
20.8k 19 19 gold badges 141 141 silver badges 195 195 bronze badges
If you installed files with pip , you may want to remove its cache in %LOCALAPPDATA%\pip
Jul 21, 2017 at 14:27

Did this, and after uninstalling I only had 19784 files and 495 MB left in the Python installation folder. Impressive.

Jan 14, 2020 at 13:31
This is not enough in most cases as user136036 mentioned
Jul 26, 2021 at 7:34

uninstalling all python interpreters (I had many versions ranging from 3.7 to 3.10) and leaving only one solved the issue for me. Pip worked normally afterwards and detected imports. Im on windows 10

Jan 24, 2023 at 19:17

You will also have to look in your system path. Python puts itself there and does not remove itself: http://www.computerhope.com/issues/ch000549.htm

Your problems probably started because your python path is pointing to the wrong one.

answered Aug 18, 2010 at 19:32
Alex Bliskovsky Alex Bliskovsky
6,063 7 7 gold badges 32 32 silver badges 41 41 bronze badges

And you may have to cleanup the Windows Registry to remove the Registry Key that’s there. See this effbot.org/zone/python-register.htm and this: docs.python.org/using/windows.html#finding-modules

Aug 18, 2010 at 19:50

I’m flagging this as the answer as this is closest to what my problem was. I found out that my .py association was changed by a buildout installation of python. This is why it seemed I couldn’t get Python out of my system — I actually had a hidden installation inside one of the projects.

Aug 18, 2010 at 22:20

Actually, all my python files were kept where they were installed. Also, all package data created in the users folder were also kept.

May 28, 2017 at 15:16

you can delete it manually.

  1. open Command Prompt
  2. cd C:\Users\\AppData\Local\Microsoft\WindowsApps
  3. del python.exe
  4. del python3.exe

Now the command prompt won’t be showing it anymore

where python —> yields nothing, and you are free to install another version from source / anaconda and (after adding its address to Environment Variables -> Path) you will find that very python you just installed

answered Feb 20, 2020 at 11:13
angelo.mastro angelo.mastro
1,718 17 17 silver badges 14 14 bronze badges

You can also use cd %LOCALAPPDATA%\Microsoft\WindowsApps , which should be the right path even if the system partition has a drive letter other than C: .

Sep 21, 2020 at 9:56
I can see the files there, but I can’t delete them.
Sep 9, 2021 at 18:34
I was only able to delete it from the powershell prompt as admin. Windows explorer gave me an error.
Jul 23, 2022 at 16:12

The «only able to delete it from the powershell prompt as admin» is critical piece of information. I had the same problem as rocksNwaves trying to do it from the Explorer, but not from a shell.

May 31, 2023 at 16:15

Run ASSOC and FTYPE to see what your py files are associated to. (These commands are internal to cmd.exe so if you use a different command processor ymmv.)

C:> assoc .py .py=Python.File C:> ftype Python.File Python.File="C:\Python26.w64\python.exe" "%1" %* C:> assoc .pyw .pyw=Python.NoConFile C:> ftype Python.NoConFile Python.NoConFile="C:\Python26.w64\pythonw.exe" "%1" %* 

(I have both 32- and 64-bit installs of Python, hence my local directory name.)

answered Aug 18, 2010 at 20:40
dash-tom-bang dash-tom-bang
17.5k 5 5 gold badges 46 46 silver badges 63 63 bronze badges
-1: none of my consoles recognize this command. Please provide references for how you obtained it.
Aug 24, 2013 at 20:48

@ArtOfWarfare: a quick search on Google should show you that they are part of Windows. I don’t know when they were introduced but I seem to remember them being there as a part of WinXP and they are a part of Win7, although perhaps they’re left out of some editions; I’m not terribly knowledgeable about Windows edition differences).

Aug 28, 2013 at 21:05

Nor am I, nor is anyone else, I don’t think. I have two computers running Windows 7. I forget what edition, but neither of them have any of those commands.

Aug 29, 2013 at 1:18

Curious, I looked it up. ftype and assoc are internal to cmd.exe. Perhaps you’re using a third party command processor that doesn’t support the full command set? ss64.com/nt/assoc.html

Sep 3, 2013 at 3:35

I attempted to use cmd just now and it found the commands. I had been using power shell as I was under the impression it did everything cmd did and more. My apologies. I have undone my downvote.

Sep 3, 2013 at 19:46

  1. Open CMD
  2. To show all packages installed — pip list
  3. To copy the packages name to a file — pip freeze > requirements.txt
  4. To delete all packages — pip uninstall -r requirements.txt -y
  5. Check all packages are removed — pip list
  6. Uninstall pip and other remaining packages
  7. Control panel > Uninstall > Python uninstall (from UI)

1,319 17 17 silver badges 30 30 bronze badges
answered Jun 26, 2021 at 6:35
Nikhil Jain Nikhil Jain
254 3 3 silver badges 8 8 bronze badges

«7. uninstall other remaining packages» how? when everything is uninstalled and list shows empty already?

Mar 8, 2023 at 3:41
@user8395964 if the list shows more packages, you can uninstall them as well, otherwise its fine.
Apr 30, 2023 at 6:19

I had window 7 (64 bit) and Python 2.7.12, I uninstalled it by clicking the python installer from the «download» directory then I selected remove python then I clicked “ finish”.
I also removed the remaining python associated directory & files from the c: drive and also from “my documents” folder, since I created some files there.

answered Aug 12, 2016 at 14:15
101 1 1 silver badge 3 3 bronze badges

If you don’t still have the Python installer, download it again and that’ll give you access to the Uninstall option. I found in Windows 10 that the Add/Remove Programs uninstall facility didn’t uninstall, but the Python installer did allow me to.

Jul 10, 2019 at 15:35

First, uninstall Python, then remove the pip packages you installed.

  • Uninstall Python: «Add or Remove Programs» , search for Python and uninstall it.
  • Remove Pip packages: type in File Explorer %LOCALAPPDATA%\Programs\Python , and remove the folders you want.

This will clean up any pip package you installed. Otherwise, if you were to reinstall Python, you will find yourself with the same pip packages that you had.

answered Apr 11, 2022 at 17:46
Sarye Haddadi Sarye Haddadi
6,736 2 2 gold badges 13 13 silver badges 12 12 bronze badges

It’s actually quite simple. When you installed it, you must have done it using some .exe file (I am assuming). Just run that .exe again, and then there will be options to modify Python. Just select the «Complete Uninstall» option, and the EXE will completely wipe out python for you.

Also, you might have to checkbox the «Remove Python from PATH». By default it is selected, but you may as well check it to be sure 🙂

answered Nov 8, 2018 at 10:41
Anirudh Prabhakaran Anirudh Prabhakaran
81 1 1 silver badge 6 6 bronze badges

I had to give the command line prompt /uninstall for 3.9.0 to uninstall, but that did work. The windows add/remove did NOT — Python wasn’t even listed.

Jul 28, 2021 at 14:57

Uninstall the python program using the windows GUI. Delete the containing folder e.g if it was stored in C:\python36\ make sure to delete that folder

answered Aug 3, 2018 at 0:10
Patrick Mutuku Patrick Mutuku
1,135 15 15 silver badges 13 13 bronze badges

I know it is an old question, but I ran into this problem with 2.7 and 3.5. Though 2.7 would not show up in my default windows uninstall list, it showed up fine in the ccleaner tools tab under uninstall. Uninstalled and reinstalled afterwards and it has been smooth coding ever since.

answered Mar 24, 2016 at 14:14
21 2 2 bronze badges

If you still have the python installer on your PC, you can double-click on it (run it, it will open the installer window), and select the «Uninstall» option. It will uninstall that python version (if the installer is for Python3.9, then Python3.9 will be uninstalled, if it is for Python3.10, then that version. )

answered Oct 27, 2021 at 16:15
Hrushikar Teja K Hrushikar Teja K
29 1 1 bronze badge

Almost all of the python files should live in their respective folders ( C:\Python26 and C:\Python27 ). Some installers (ActiveState) will also associate .py* files and add the python path to %PATH% with an install if you tick the «use this as the default installation» box.

answered Aug 18, 2010 at 19:24
26.1k 12 12 gold badges 84 84 silver badges 122 122 bronze badges

Windows 7 64-bit, with both Python3.4 and Python2.7 installed at some point 🙂

I’m using Py.exe to route to Py2 or Py3 depending on the script’s needs — but I previously improperly uninstalled Python27 before.

Py27 was removed manually from C:\python\Python27 (the folder Python27 was deleted by me previously)

Upon re-installing Python27, it gave the above error you specify.
It would always back out while trying to ‘remove shortcuts’ during the installation process.

I placed a copy of Python27 back in that original folder, at C:\Python\Python27, and re-ran the same failing Python27 installer. It was happy locating those items and removing them, and proceeded with the install.

This is not the answer that addresses registry key issues (others mention that) but it is somewhat of a workaround if you know of previous installations that were improperly removed.

You could have some insight to this by opening «regedit» and searching for «Python27» — a registry key appeared in my command-shell Cache pointing at c:\python\python27\ (which had been removed and was not present when searching in the registry upon finding it).

That may help point to previously improperly removed installations.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *