LoginSignup
74
55

More than 5 years have passed since last update.

setup.pyを用いてインストールしたモジュールのアンインストール方法

Last updated at Posted at 2016-08-10

はじめに

setup.pyを用いて外部モジュールをインストールする際には

python setup.py install

こんな感じにインストールしたのだから,

python setup.py uninstall

こんな感じにアンインストールできるだろうと思っていたのだが,そう上手くはいかなかった

アンインストール方法

まずインストールする際に作成されるファイルのリストを書き出して

python setup.py install --record files.txt

次にリストに載ってるファイルを消去


cat files.txt | xargs rm -rf

これでアンインストール完了

参考

74
55
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
74
55