How to delete python from windows

How to uninstall Python

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.

Читайте также:  Многопроцессорность многопоточность асинхронность python

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.

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:

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.

Источник

How to Uninstall Python

This article was co-authored by wikiHow staff writer, Jack Lloyd. Jack Lloyd is a Technology Writer and Editor for wikiHow. He has over two years of experience writing and editing technology-related articles. He is technology enthusiast and an English teacher.

The wikiHow Tech Team also followed the article’s instructions and verified that they work.

This article has been viewed 402,728 times.

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.

  • 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.

Windows 10

Image titled Uninstall Python Step 1

Windows Start

Image titled Uninstall Python Step 2

Windows Settings

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

Image titled Uninstall Python Step 3

Image titled Uninstall Python Step 4

  • You may first have to click the Apps & features tab in the upper-left corner of the window.

Image titled Uninstall Python Step 5

Image titled Uninstall Python Step 6

Image titled Uninstall Python Step 7

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

Image titled Uninstall Python Step 8

Image titled Uninstall Python Step 9

Image titled Uninstall Python Step 10

Image titled Uninstall Python Step 11

  • 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.

Mac

Image titled Uninstall Python Step 12

Mac Finder

Image titled Uninstall Python Step 13

Image titled Uninstall Python Step 14

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

Image titled Uninstall Python Step 15

  • 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.

Image titled Uninstall Python Step 16

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

Image titled Uninstall Python Step 17

Image titled Uninstall Python Step 18

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

Image titled Uninstall Python Step 19

Image titled Uninstall Python Step 20

Image titled Uninstall Python Step 21

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.

Image titled Uninstall Python Step 22

  • 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.

Community Q&A

Thanks! We’re glad this was helpful.
Thank you for your feedback.
As a small thank you, we’d like to offer you a $30 gift card (valid at GoNift.com). Use it to try out great new products and services nationwide without paying full price—wine, food delivery, clothing and more. Enjoy! Claim Your Gift If wikiHow has helped you, please consider a small contribution to support us in helping more readers like you. We’re committed to providing the world with free how-to resources, and even $1 helps us in our mission. Support wikiHow

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

Thanks! We’re glad this was helpful.
Thank you for your feedback.
As a small thank you, we’d like to offer you a $30 gift card (valid at GoNift.com). Use it to try out great new products and services nationwide without paying full price—wine, food delivery, clothing and more. Enjoy! Claim Your Gift If wikiHow has helped you, please consider a small contribution to support us in helping more readers like you. We’re committed to providing the world with free how-to resources, and even $1 helps us in our mission. Support wikiHow

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

You Might Also Like

Use Windows Command Prompt to Run a Python File

Open a Python File

Check Python Version on PC or Mac

How to See the Python Version on Mac, Windows, and Linux

Comment Out Multiple Lines in Python

How to Comment Out Multiple Lines in Python: Formatting & Shortcuts

Start Programming in Python

Change the Font Size in Python Shell

Read/Write in a Text File Using Python on a Macbook

Make a Countdown Program in Python

Write a Python Program to Calculate Pi

Create a Very Simple Program in Python

Program a Game in Python with Pygame

Write a Coin Flipping Program on Python

Create Loops in Python

How to Create Loops in Python

Write a Basic Python Program

About This Article

This article was co-authored by wikiHow staff writer, Jack Lloyd. Jack Lloyd is a Technology Writer and Editor for wikiHow. He has over two years of experience writing and editing technology-related articles. He is technology enthusiast and an English teacher. This article has been viewed 402,728 times.

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!

Источник

Полное удаление Python в Windows 10

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

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

  1. Нажмите комбинацию Win + R и выполните в открывшемся диалоговом окошке команду appwiz.cpl , чтобы запустить апплет «Программы компоненты». Как полностью удалить python в Windows 10-1
  2. Найдите «Python Launcher» в списке программ, выделите его мышкой и нажмите «Удалить». Как полностью удалить python в Windows 10-2
  3. Подтвердите удаление. Как полностью удалить python в Windows 10-3
  • Затем выделите в списке «Python» и нажмите «Удалить». Как полностью удалить python в Windows 10-4
  • Начнется процесс удаления, дождитесь его завершения.
  • Воспользуйтесь встроенным поиском Windows или любой сторонней утилитой, чтобы найти оставшиеся папки и файлы Python. По умолчанию программа Python устанавливается в пользовательский каталог C:\Users\имя_пользователя\AppData\Local\Programs — проверьте на всякий случай, имеется ли там папка с названием «Python», и удалите ее со всем содержимым. Как полностью удалить python в Windows 10-5
  • После удаления приложение рекомендуется перезагрузить компьютер.

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

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

    Скачать Revo Uninstaller

    1. Скачайте Revo Uninstaller с сайта разработчика, установите и запустите.
    2. В списке программ найдите Python, выделите его и нажмите кнопку «Удалить». Как полностью удалить python в Windows 10-6
    3. В открывшемся окне нажмите «Продолжить». Как полностью удалить python в Windows 10-7
  • Подождите окончания процесса удаления и закройте окно мастера-деинсталлятора Python. Как полностью удалить python в Windows 10-8
  • В окне Revo Uninstaller выберите режим сканирования «Продвинутый» и нажмите «Сканировать». Как полностью удалить python в Windows 10-9
  • Отметьте найденные ключи реестра и нажмите кнопку «Удалить». Как полностью удалить python в Windows 10-11
  • В следующем окне отметьте найденные папки и файлы Python и нажмите «Удалить». Как полностью удалить python в Windows 10-12
  • Поиск и удаление оставшихся файлов и папок Python в ручном режиме в случае использования сторонних деинсталляторов рекомендован, но не обязателен.

    Источник

    How to Uninstall Python

    We may want to remove Python in our Linux or Windows systems for different reasons – conflicting packages and the need for a given Python version are some top reasons. Unlike in Windows, Python is a core program in most Linux distributions. In this case, uninstalling Python without utmost care may cause your Linux system to break. This article focuses on how we can safely remove Python from Windows and Linux systems.

    How to Uninstall Python in Linux

    Most Linux distros come with Python installed. In fact, in most cases, the default Python coming with the operating system is a core package for the system such that if it is removed, the graphical display manager breaks down, among other awful things. Other Python version(s) can also be installed alongside Linux-inbuilt Python (we will discuss how to do this later). We can safely remove the Python built from the source, but removing the Python that came with the distribution is not recommended.

    To uninstall Python installed from the source, follow these steps:

    Step A. First of all, check all the Python versions installed using the whereis command in Linux

    From Figure 1, what we are after are the binaries. They are located at bin/or local/bin. The inbuilt Python is in bin/, whereas the Python built from the source is mainly installed at the local/bin. In our case, we have Python3.9 (inbuilt – we don’t want to uninstall this) and Python3.6 located in local/bin directory, and we can safely remove it.

    The following list can fully explain the Linux directories we are interested in:

    • /bin – binary or executable programs.
    • /lib – it contains kernel modules and a shared library.
    • /usr – user-related programs.
    • The /usr/local directory is where locally compiled applications are installed by default, preventing them from mucking up the rest of the system.
    • /etc – system configuration files.

    Many programs in most Linux distributions depend on pre-installed Python. You can identify the default Python by running python on the terminal. You can also find it by using which command.

    If we take a closer look at the long listing of /usr/bin you will realize that Python and its dependencies are linked to other programs.

    Источник

    Оцените статью