2014年8月30日星期六

How to completely uninstall Enthought Canopy on Mac OS

1. From Canopy preferences menu, Unset Canopy as your default Python.

2. Remove the following directory:

  •     /Applications/Canopy.app  
  •    also you can uninstall it by using mouse operation "Click".

3. Remove the residual files:
    sudo rm /Users/<your_username>/Library/Enthought

4. Remove the hidden folder:

  •     ~/ls -a   # listing all the files and folders including hidden one
  •     sudo rm ~/.canopy


5. After uninstalling Canopy, if you got the following messages when turning on the terminal:
-bash: /Users/<your_username>/Library/Enthought/Canopy_64bit/User/bin/activate: No such file or directory

You can solve this problem by

  •     ~/ls -a     # listing all the files and folders including hidden one
  •     sudo vi ~/.bash_profile     # opening the bash_profile by vim
  •     Keyboard operations: "ESC" and "i"     # insert mode
  •     Removing the lines which contain the offending file names.
  •     Keyboard operations: "ESC", ":wq"    # Save and exit

5 条评论:

  1. I did everything and followed your instruction . Unfortunately, when i open a .py file via sublime or Xcode, it still comes out with canopy icon. I don't know why. I feel it is impossible for my Mac to get rid of Canopy. :(

    回复删除
  2. 此评论已被作者删除。

    回复删除
  3. Hey there,

    thank you for sharing!
    Maybe this a useful add on for some people:

    - depending on your system and setting, you should include the -rf flag
    in steps 3 & 4, for example: sudo rm -rf ~/.canopy
    - also make sure to sudo rm rf ~/.enthought
    - wrt step 5 also have a look in your ~/.profile, as in my case this
    contained the offending file name

    Thanks again & HTH, Best Peer

    回复删除
  4. Thank you for the help kind sir

    回复删除