Delete python from windows

Как установить или удалить модуль Python?

Лучший и рекомендуемый способ установки модулей Python — использовать pip, менеджер пакетов Python.

Если у вас установлен Python 2> = 2.7.9 или Python 3> = 3.4 с python.org, у вас уже есть pip и setuptools, но вам потребуется обновить его до последней версии:

В Linux или macOS:

Если вы используете установку Python в Linux, которая управляется менеджером системных пакетов (например, «yum», «apt-get» и т. Д.), И вы хотите использовать менеджер системных пакетов для установки или обновления pip, то смотрите: https://packaging.python.org/guides/installing-using-linux-tools/

В противном случае:

Загрузите файл get-pip.py с веб-сайта https://bootstrap.pypa.io/get-pip.py. Запустите python get-pip.py. Это установит или обновит пункт.

Теперь вы можете использовать pip для установки пакетов Python. Например, чтобы установить последнюю версию «SomeProject»:

Чтобы установить конкретную версию:

Чтобы установить больше или равно одной версии и меньше другой:

Вы можете удалить большинство установленных пакетов Python, используя pip. Для получения дополнительной информации об удалении из pip перейдите по ссылке : https://pip.pypa.io/en/stable/reference/pip_uninstall/. Например, если у вас установлен пакет numpy и вы хотите удалить его, введите следующее:

Однако есть некоторые исключения. Эти пакеты не могут быть легко удалены с помощью pip:

1. Чистые пакеты distutils, установленные с помощью python setup.py install, которые не оставляют метаданных, чтобы определить, какие файлы были установлены.

2. Разработка сценариев, установленных Python setup.py.

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

Если вы не знаете список всех файлов, вы можете переустановить его с параметром —record и взглянуть на список, который он создает. Для записи списка установленных файлов вы можете использовать:

How to uninstall Python

Python is uninstalled differently in Windows and Mac.

Windows

To uninstall Python from Windows, follow these steps:

Navigate to Control Panel.

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

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.

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

Go to the Finder.

Click on Applications in the menu on the left.

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

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:
Читайте также:  Htc one windows phone apps

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:

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.

Delete python from windows

(May-27-2020, 10:15 AM) Winfried Wrote: What is the procedure to remove Python entirely from Windows, so I can reinstall and be done with it?

For fixing error you have this may work.
But if want a new install follow link,and no need to use pip3 .
Test with Python -V and pip -V after install,shall work from anywhere in cmd .

Quote: You just use the Windows Uninstaller.

Quote: You just use the Windows Uninstaller.

Nice, but Uninstaller not working.

(May-27-2020, 10:55 AM) macfanpl Wrote: Nice, but Uninstaller not working.

I guess @Winfried shall answer about this,and not you.

why not? Because you say so?! ***

Yes, I always uninstall apps through their installer, if available.

  1. Removed Python 3.8.2 32-bits
  2. Cleaned sys/user PATH of Python-related items
  3. Deleted c:\Users\fred\AppData\Local\pip\ and c:\Users\fred\AppData\Roaming\Python\
  4. Installed Python 3.8.3 in C:\Python38 per instructions
  5. Checked sys/user PATH (USER: Nothing; SYS: Two items)
  6. pip —version: pip 19.2.3 from c:\python38\lib\site-packages\pip (python 3.8)
  7. Imported modules: pip install gpxpy: OK, but «WARNING: You are using pip version 19.2.3, however version 20.1.1 is available. You should consider upgrading via the ‘python -m pip install —upgrade pip’ command.» → python -m pip install —upgrade pip: «Successfully installed pip-20.1.1»
  8. Ran test script: No error.

Maybe it was because of the files the uninstaller left in c:\Users.

How to completely uninstall Python 2.7 from Windows 7 PC

Having installed Python 2.7 from here:

I then uninstalled it using the control panel (I have Windows 7 pro). Now Python 2.7 no longer appears in the list of installed programs, however the files are still sitting in the same place on the C: drive.

I have since installed version 2.6 but I seem to be having some clashing issues between the versions. I’m having similar issues to this guy:

I just want to know how can I remove Python 2.7 completely?

Will simply deleting the folders from my C: drive be sufficient?

How can I test that it has been completely removed?

2 Answers 2

You should just be able to delete the local files if you’ve already uninstalled from control panel. Also be sure to go to your environment variables and make sure that the python 2.7 directory isn’t there. To do that,

  • Go to the start menu and right click on Computer
  • Click on Properties
  • Advanced system settings
  • Environment Variables and look for «path» under system variables
  • Be sure to erase C:\. \Python2.7.x
Читайте также:  Ошибка самодиагностики жесткого диска линукс

If you uninstalled from control panel it might not be there but it’s probably good to double check. Also, be sure to delete the ; before C:\. \Python2.7.x

I had a similar problem. I kept installing Python 3.6 but when I typed «python» from the command prompt, Python 2.7 kept opening up despite the fact that I had uninstalled and it wasn’t in my Path or in my Programs folder. I eventually solved the problem by uninstalling Enthought/Canopy from my computer and also erasing all the related files. Now I have a regular installation of Python 3.6 working and accessible from the command prompt. I assume I could now also get a parallel python 2.7 going, but I haven’t tried to since I have no need for it at the moment. The giveaway for me that my python 2.7 installation was strange was that when I typed:

into the command prompt, I was getting the following:

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.

11 Answers 11

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.

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.

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

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

Читайте также:  Не устанавливается альт линукс

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

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.

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.

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.

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

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 🙂

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.

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