How to uninstall python windows

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.

Good luck!

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.

Good luck!

Python is uninstalled differently in Windows and Mac.

Windows

To uninstall Python from Windows, follow these steps:

  1. Navigate to Control Panel.

  2. Click “Uninstall a program”, and a list of all the currently installed programs will display.

  3. Select the Python version that you want to uninstall, then click the “Uninstall” button above the list – this has to be done for every Python version installed on the system.

Mac

For Python 3 and above, first, perform the following steps:

  1. Go to the Finder.

  2. Click on Applications in the menu on the left.

  3. Find the Python folder with the version number you want to uninstall, right-click it, and select “Move to Trash”.

Depending upon the process of installation, Python may or may not be present in the Applications folder. If it’s not perform the steps in the next section.

Removing additional files from the Terminal

Moving the Python application to trash will not remove Python entirely. Furthermore, a built-in Python distribution may not appear in the Applications folder. So we’ll have to use the Terminal to uninstall it manually.

First, open the Activity Monitor and close all processes related to Python in the Memory tab. One such process is the Python Launcher. Now we can proceed to the Terminal.

  1. Open the Terminal and navigate to your Library folder from your root directory:
$ (base) Username:~ cd Library

Here, you can list the current folders in your Library using the ls command. Look for a folder named Python. Remove this folder with super-user privileges:

sudo rm -rf Python

Note: The operation requires your password in order to be completed.

Additionally, three more main directories have to be handled in order to remove Python. Move back to your root user directory and perform the following commands:

sudo rm -rf “/Applications/Python”
sudo rm -rf /Library/Frameworks/Python.framework
sudo rm -rf /usr/local/bin/python

Note: We do not recommend this step for novice Mac users. The way Python files are distributed in your Library and cache may differ based on your use, and so, extra files may have to be deleted which you can search for in the Finder or manually in the terminal.

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

Способ 1: Ручная очистка

Как и все программы, Python можно и нужно удалять средствами Windows. При этом часть файлов приложения останутся на компьютере, стереть их можно будет вручную.

  1. Нажмите комбинацию Win + R и выполните в открывшемся диалоговом окошке команду appwiz.cpl, чтобы запустить апплет «Программы компоненты».
  2. Как полностью удалить python в Windows 10-1

  3. Найдите «Python Launcher» в списке программ, выделите его мышкой и нажмите «Удалить».
  4. Как полностью удалить python в Windows 10-2

  5. Подтвердите удаление.
  6. Как полностью удалить python в Windows 10-3

  7. Затем выделите в списке «Python» и нажмите «Удалить».
  8. Как полностью удалить python в Windows 10-4

  9. Начнется процесс удаления, дождитесь его завершения.
  10. Воспользуйтесь встроенным поиском Windows или любой сторонней утилитой, чтобы найти оставшиеся папки и файлы Python. По умолчанию программа Python устанавливается в пользовательский каталог C:\Users\имя_пользователя\AppData\Local\Programs — проверьте на всякий случай, имеется ли там папка с названием «Python», и удалите ее со всем содержимым.
  11. Как полностью удалить python в Windows 10-5

После удаления приложение рекомендуется перезагрузить компьютер.

Способ 2: Использование деинсталляторов

Как вариант, для полного удаления Python можно использовать сторонние деинсталляторы, например, бесплатную программу Revo Uninstaller.

Скачать Revo Uninstaller

  1. Скачайте Revo Uninstaller с сайта разработчика, установите и запустите.
  2. В списке программ найдите Python, выделите его и нажмите кнопку «Удалить».
  3. Как полностью удалить python в Windows 10-6

  4. В открывшемся окне нажмите «Продолжить».
  5. Как полностью удалить python в Windows 10-7

  6. Подождите окончания процесса удаления и закройте окно мастера-деинсталлятора Python.
  7. Как полностью удалить python в Windows 10-8

  8. В окне Revo Uninstaller выберите режим сканирования «Продвинутый» и нажмите «Сканировать».
  9. Как полностью удалить python в Windows 10-9

  10. Отметьте найденные ключи реестра и нажмите кнопку «Удалить».
  11. Как полностью удалить python в Windows 10-11

  12. В следующем окне отметьте найденные папки и файлы Python и нажмите «Удалить».
  13. Как полностью удалить python в Windows 10-12

Поиск и удаление оставшихся файлов и папок Python в ручном режиме в случае использования сторонних деинсталляторов рекомендован, но не обязателен.

Читайте также: Программы для удаления программ

Еще статьи по данной теме:

Помогла ли Вам статья?


Download Article

A simple guide to removing any version of Python from your PC or Mac


Download Article

  • Windows 10
  • |

  • Mac
  • |

  • Q&A
  • |

  • Tips
  • |

  • Warnings

This wikiHow teaches you how to remove the Python application and its related files and folders from your computer. You can do this on both Windows and Mac computers.

Things You Should Know

  • You can easily uninstall Python from Windows from your Windows Settings like any other app.
  • If you’re using a Mac, you can remove Python by dragging its folder to the Trash.
  • If you have multiple versions of Python installed, you’ll need to uninstall each separately.
  1. Image titled Uninstall Python Step 1

    1

    Open Start

    Windows Start

    . Click the Windows logo in the bottom-left corner of the screen. A pop-up menu will appear.

  2. Image titled Uninstall Python Step 2

    2

    Open Settings

    Windows Settings

    . Click the Settings gear icon in the lower-left side of the Start menu. This will bring up the Settings window.

    Advertisement

  3. Image titled Uninstall Python Step 3

    3

    Click Apps. It’s in the middle of the Settings window.

  4. Image titled Uninstall Python Step 4

    4

    Find the version of Python you want to uninstall. Scroll down until you reach the «P» section, then look for apps with «Python» in the name (e.g., «Python 3.6»).

    • You may first have to click the Apps & features tab in the upper-left corner of the window.
  5. Image titled Uninstall Python Step 5

    5

    Click the Python version’s name. Doing so will expand it to display an Uninstall button.

  6. Image titled Uninstall Python Step 6

    6

    Click Uninstall. It’s below the Python version’s name.

  7. Image titled Uninstall Python Step 7

    7

    Click Uninstall when prompted. You should see this appear at the top of the Python version’s name.

  8. Image titled Uninstall Python Step 8

    8

    Click Yes when prompted. Doing so confirms that you want to uninstall Python.

  9. Image titled Uninstall Python Step 9

    9

    Allow Python to uninstall. You should see a pop-up window with a progress bar appear; once the progress bar reaches its end and disappears, Python should be uninstalled.

    • You may have to click through some prompts as part of the uninstall process.
  10. Image titled Uninstall Python Step 10

    10

    Uninstall other versions of Python if necessary. Since Python can have multiple versions installed at once, search for more Python installations in the «P» section of the installed apps; if you find another version of Python installed, repeat the above steps to uninstall it if necessary.

    • You might also want to delete the Python Launcher app.
  11. Image titled Uninstall Python Step 11

    11

    Remove the Python 2 folder. While uninstalling Python 3 will remove the Python 3 folder(s) from your computer, the Python 2 folder will remain behind even if you uninstall its program. To remove the folder, do the following:

    • Open This PC.
    • Double-click your hard drive in the «Devices and drives» section.
    • Find the «Python27» (or similar) folder in the list of folders.
    • Select the Python folder, then right-click it to prompt a drop-down menu.
    • Click Delete in the drop-down menu.
  12. Advertisement

  1. Image titled Uninstall Python Step 12

    1

    Open

    Mac Finder

    Finder. Click the Finder app icon, which resembles a blue face, in your Mac’s Dock.

    • You can also just click a blank space on the desktop.
  2. Image titled Uninstall Python Step 13

    2

    Click Go. It’s a menu item at the top of the screen. Clicking it prompts a drop-down menu.

  3. Image titled Uninstall Python Step 14

    3

    Click Go to Folder…. You’ll find this near the bottom of the Go drop-down menu. Doing so opens a pop-up window.

  4. Image titled Uninstall Python Step 15

    4

    Enter the address to your Python installation folder. Depending on your installed version of Python, you’ll type one of the following addresses into the «Go to Folder» text box:[1]

    • For Python 3.6 and up, you’ll enter /Library/Frameworks/Python.framework/Versions here.
    • For Python 2.7, you’ll enter /Library/Python/Versions or /Library/Python here.
  5. Image titled Uninstall Python Step 16

    5

    Click Go. It’s at the bottom of the pop-up window. This will open the folder in which Python is installed.

  6. Image titled Uninstall Python Step 17

    6

    Select the version number folder. Click once the folder that has Python’s version number as its name.

    • For example, if you’re deleting Python 3.6, you would click the 3.6 folder once to select it.
  7. Image titled Uninstall Python Step 18

    7

    Click File. It’s in the upper-left corner of your Mac’s screen. Doing so prompts a drop-down menu.

  8. Image titled Uninstall Python Step 19

    8

    Click Move to Trash. This is in the File drop-down menu.

  9. Image titled Uninstall Python Step 20

    9

    Enter your password when prompted. Type in the password you use to log into your Mac.

    • Skip this step and the next one if you aren’t asked to input a password.
  10. Image titled Uninstall Python Step 21

    10

    Click OK. It’s at the bottom of the password prompt. Doing so closes the password window and moves your selected Python folder to the Trash.

  11. Image titled Uninstall Python Step 22

    11

    Delete the Python program if necessary. Not all versions of Python will install a program in your Mac’s Applications folder, but you should check to make sure. You can look for and delete a Python application by doing the following:

    • Click Go at the top of the screen.
    • Click Applications in the drop-down menu.
    • Look for an application with «Python» in the name (e.g., «Python 3.6»).
    • Select the application if you find it.
    • Click File, then click Move to Trash.
    • Enter your password, then click OK.
  12. Advertisement

Add New Question

  • Question

    Where would I find the .msi file?

    Incognito sam

    Incognito sam

    Community Answer

    The .msi is the installer, so it is usually in your downloads folder unless it has been moved.

  • Question

    There is no version for anything before Windows 10?

    Incognito sam

    Incognito sam

    Community Answer

    Actually, Python is compatible with most recent versions of Windows, and you can find downloads on their official website.

Ask a Question

200 characters left

Include your email address to get a message when this question is answered.

Submit

Advertisement

  • Uninstalling Python 3 should also remove it from the PATH variable list.

Thanks for submitting a tip for review!

Advertisement

  • Since there are multiple possible installations of Python, it may take a while for you to uninstall completely Python from your computer.

Advertisement

References

About This Article

Article SummaryX

To uninstall Python from Windows 10, first, click the Windows logo on the bottom-left corner of the screen to open the start menu. Click the Settings gear on the left side of the menu, then click “Apps” in the Settings menu. Look for the version of Python you want to uninstall. Then, highlight it and click “Uninstall.” Finally, confirm that you want to uninstall the program. To uninstall Python on a Mac, open the Finder application. Find the version of Python you want to uninstall, highlight it, then click “File” at the top of the screen and “Move to Trash.” Keep in mind that if you have multiple versions of Python downloaded on your computer you will have to uninstall them each separately. For more advice on the uninstallation process, read on!

Did this summary help you?

Thanks to all authors for creating a page that has been read 405,684 times.

Is this article up to date?

  • How to type unicode windows
  • How to transfer photos from iphone to windows
  • How to turn on or off windows features on
  • How to turn on bluetooth on windows 10
  • How to turn off windows updates