Knowledge Base/Canopy/Introduction to Canopy

Uninstalling Canopy

Puneeth Chaganti
posted this on April 15, 2013 01:34

(Revised February 28, 2014)

Windows

1) Important: From the Canopy preferences menu, Unset Canopy as your default Python. 

2) Uninstall Enthought Canopy  from:

Control Panel > Add/Remove Programs (Windows XP).

Control Panel > Programs and Features (Windows 7).

3) If you are uninstalling completely (including before a completely clean re-installation), then for each Canopy user, delete the following directory which contains that user's "System" and "User" virtual environment sub-directories (for 32-bit Canopy, replace "Canopy" with "Canopy32"):

# Win 7 or Vista
C:\Users\<Username>\AppData\Local\Enthought\Canopy
# Win XP
C:\Documents and Settings\<username>\Local Settings\Application Data\Enthought\Canopy 

Note that to see the AppData or Local Settings directories in Windows Explorer, you must set Explorer to show hidden files (Computer / Organize / Folder & Search Options / View / Advanced settings / Show hidden...)

4) Remove your Canopy preferences directory, which contains some cookie files that could affect your next install.

5) If you did not do step 1 because of not reading these instructions initially, then manually delete any of the following keys from your Windows registry, if they refer to Canopy:

HKEY_CURRENT_USER\Software\Python\PythonCore\2.7\InstallPath
HKEY_CURRENT_USER\Software\Python\PythonCore\2.7\PythonPath
HKEY_LOCAL_MACHINE\Software\Python\PythonCore\2.7\InstallPath
HKEY_LOCAL_MACHINE\Software\Python\PythonCore\2.7\PythonPath

Mac OSX

1) Important: From the Canopy preferences menu, Unset Canopy as your default Python.

2) Remove the following  directory:

/Applications/Canopy.app 

3) If you are uninstalling completely (including before a completely clean re-installation), then for each Canopy user, delete the following directory which contains that user's "System" and "User" virtual environment sub-directories (for 32-bit Canopy, replace "64bit" with "32bit"): 

/Users/<your-username>/Library/Enthought/Canopy_64bit

4) Remove your Canopy preferences directory, which contains some cookie files that may affect your next install.

5) If you are uninstalling completely, delete any lines in the following files which reference Canopy (usually, the Canopy-related lines will have been commented out by step 1 but on some system configurations the lines might remain):

/Users/<your-username>/.bash_profile
/Users/<your-username/.profile

 

Linux

1) Important: From the Canopy preferences menu, Unset Canopy as your default Python.

2) Remove the "~/Canopy" directory (or the directory where you installed Canopy).

3) If you are uninstalling completely (including before a completely clean re-installation), then for each Canopy user, delete the following directory which contains that user's "System" and "User" virtual environment sub-directories (for 32-bit Canopy, replace "64bit" with "32bit"):

~/Enthought/Canopy_64bit

4) Remove your Canopy preferences directory, which contains some cookie files that may affect your next install.

5) If you are uninstalling completely, delete any lines in the following files which reference Canopy (usually, the Canopy-related lines will have been commented out by step 1 but on some system configurations the lines might remain):

~/.bashrc
~/.bash_profile
~/.profile

 

Please do not enter support requests in article comments

Please use article comments for suggestions to improve the article. For individual support requests, please follow these guidelines.

 

Comments

User photo
Irais Valencia

How to re-install completely  canopy? Because when I try reinstall does not generate the Enthought directory. Thank you

June 19, 2013 12:57
User photo
Puneeth Chaganti
Enthought

Did you try running Canopy after the install?  The ~/Enthought directory is re-created on first run, not on install. 

June 19, 2013 13:20
User photo
Irais Valencia

Thank you for your kind help. The problem have been solved 

June 19, 2013 14:13
User photo
Christopher Hagmann

I got rid of all of the files you mentioned (Linux) to prep for a clean re-install. When I re-installed, however, It already had me logged in. How did it know?

 

June 24, 2013 15:26
User photo
Puneeth Chaganti
Enthought

@Christopher, your username and password are stored in a separate file called ~/.enstaller4rc.  This is a file that enpkg uses, as well.

June 24, 2013 19:37
User photo
Gab Milch

Hi,

I have removed all directories, subdirectories and lines suggested here for Mac OSX, but it still hasn't removed all canopy files, and it still tries to open python files with canopy (pls see screenshot). What do I do now? (I also had previous version of Enthought, that I delted)

Thanks,

 

 

August 05, 2013 17:50
User photo
Jonathan March
Enthought

Also delete the preferences directory ~/.canopy. What other Canopy files are you referring to?

Clearing file associations in OSX is non-trivial, as you will see if you search for "os x clear file association", and we currently do not provide a way to do this, though it clearly would be desireable. You can, however, reset the association of .py files, as described here:
http://osxdaily.com/2009/10/25/change-file-associations-in-mac-os-x/

Thanks for trying Canopy; sorry that it did not meet your needs.

August 05, 2013 19:46
User photo
Gab Milch

I deleted ~/.canopy as well earlier, Ok, I guess reset association will have to do. Thanks

August 05, 2013 20:51
User photo
Donald Braman

First, I love all the work you've done and the product, but I need it off one of my machines.  I've deleted the app, and all the enthought files and directories.  I've also reassociated .py files with the python launcher.  But if I try to run python from the terminal, I get: 

don$ python
-bash: /Users/don/Library/Enthought/Canopy_64bit/User/bin/python: No such file or directory

How do I get rid of that association? 

August 21, 2013 22:01
User photo
Jonathan March
Enthought

Don, these are both odd, but it looks like you may have an alias or a soft link. What do you get from these terminal commands?:

$ which python

$ alias | grep python

BTW, KB comments are good for suggestions on the articles but are not a timely way to get answers. See https://support.enthought.com/home for instructions.

August 30, 2013 14:45
User photo
changhyoup lee

After I uninstalled, I got following messages when I turn on the terminal. 

-bash: /Users/cqt/Library/Enthought/Canopy_64bit/User/bin/activate: No such file or directory
-bash: ~canopy/bin/activate: No such file or directory
-bash: /Users/cqt/canopy/bin/activate: No such file or directory

How can I solve this problem? 

October 10, 2013 01:14
User photo
Puneeth Chaganti
Enthought

In your bash profile (~/.bashrc), remove the lines which contain the offending file names.

October 10, 2013 01:30
User photo
changhyoup lee

Many thanks for your quick advice.

But I don't have a bash profile (~/.bashrc). What's wrong with me? : (

October 10, 2013 01:47
User photo
Puneeth Chaganti
Enthought

you are probably using an older version of Canopy.  Look for ~/.profile or ~/.bash_profile.

 

October 10, 2013 04:54
User photo
changhyoup lee

Many thanks!! I just solved it. : )

October 11, 2013 03:52
User photo
safis hajjouz

Hi, 

I installed Canopy Express, but cannot be removed from Windows. What's the problem? I have windows 7

November 20, 2013 19:28
User photo
Jonathan March
Enthought

@safis. The above procedure should work, except that you may still have a few entries in your start menu, but they won't actually do anything. Perhaps you didn't remove the registry entries described above? Otherwise, please give a precise description of the symptoms. 

November 20, 2013 21:57
User photo
m mutoo

I was trying to uninstall Canopy 1.0.4 on my computer (Windows 7 64bit) and just noticed that there is no entry in Windows Install/Uninstall for Canopy! Is there a way I can repair that? 

March 04, 2014 16:43
User photo
Jonathan March
Enthought

@mutoo I assume you also looked for "Enthought Canopy" (don't recall if the name changed). Otherwise,  delete all the files mentioned above, then *carefully* search for and delete any Canopy-related entries in the Windows registry. (Get a geek friend to help if you are not familiar with this as you could turn your machine into a lifeless brick.)

March 04, 2014 17:04
User photo
m mutoo

Hi Jonathan! Thanks for the help. Yes I looked for Enthought Canopy but it is not there. I checked all the programs carefully. Nothing is in the list. I am going to use the manual method. Thanks.

March 05, 2014 08:58
User photo
Jiajia Zhao

Hi, I'm trying to uninstall as well, and followed all the instructions above. now my ~/.bashrc, ~/.profile and ~/.bash_profile are all empty files. But I still got the following error when I type python in terminal:

-bash: /Users/snowbabyjia/Library/Enthought/Canopy_64bit/User/bin/python: No such file or directory

When I do which python, here's my output:

/usr/bin/python

Now I can't use python anymore and I really need it :( Could you please let me know how to solve this problem? Thanks sooo much!!

 

April 14, 2014 18:05