LoginSignup
2
3

More than 5 years have passed since last update.

pip でインストールしたものをすべてアンインストール

Last updated at Posted at 2017-06-13

pip freeze で pip install したもの一覧をとりだし、それを uninstall します。
確認無しでアンインストールされるのでご注意ください

pip freeze | xargs pip uninstall -y

自前で -e でインストール等している場合 invert grep をはさみます。

pip freeze | grep -v "\-e" | xargs pip uninstall -y

自前で入れたモジュールは手動で削除することになりますが・・

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3