5

Having installed Python 2.7 from here:

https://www.python.org/downloads/release/python-279/

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:

How to completely remove Python from a Windows machine?

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?

9
  • 4
    Also remove Python path from PATH environment variable, if you have not already done. Commented Feb 25, 2015 at 15:59
  • 2
    Deleting the directory you've installed python inside has worked for me when I was replacing Python 2.7 with Python 3.4 Commented Feb 25, 2015 at 15:59
  • 1
    Have you uninstall it from the program uninstall menu? Commented Feb 25, 2015 at 16:00
  • 1
    Can you run the following line on a cmd windows python -c "print 1+1" ? If you cannot , it is ok. If you can, python is still installed. Commented Feb 25, 2015 at 16:03
  • 1
    Try the command line I gave you. Then if things are fine, go for manual deletion. Commented Feb 25, 2015 at 16:05

2 Answers 2

8

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

Sign up to request clarification or add additional context in comments.

Comments

0

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:

python --version

into the command prompt, I was getting the following:

Python 2.7.6 -- CUSTOM

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.