Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I uninstall Flask?

I've been trying to uninstall Flask from my Mac, but get the following error:

sim1-3010:~ seanpatterson$ sudo uninstall Flask
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is     setuid or setgid
Preparing Uninstall...
Uninstall Began...
Uninstall Failed...
Reason: ErrorMissingBundle

Any ideas?

like image 283
Takeshi Patterson Avatar asked Oct 31 '13 08:10

Takeshi Patterson


1 Answers

  1. If you installed flask with pip, use pip uninstall flask.
  2. If you're not sure how you installed flask, but didn't use pip, try running this command:

    python -c "import os, flask; print(os.path.dirname(flask.__file__))"

Then, manually delete that entire directory from the filesystem.

like image 66
Robert T. McGibbon Avatar answered Sep 21 '22 12:09

Robert T. McGibbon