LoginSignup
28
26

More than 5 years have passed since last update.

eggパッケージのインストールとアンインストール

Last updated at Posted at 2013-09-20

インストール

インストール実行コマンド

easy_install hogehoge.egg
  • インストールが実行されると、eggが展開されて所定の場所に置かれ、参照パスが設定される

配備されるファイル群の置き先

  • Pythonのライブラリ置き場所に展開される
${python_lib}/site-packages/${eggパッケージ名))
  • 環境によって違うが、例えば下記の場所とか
/usr/lib/python2.6/site-packages

参照パスの書き込み先

${python_lib}/site-packages/easy-install.pth

アンインストール

  • 1. パッケージのインストール先を調べておく
python
>>> import ${module_name_in_the_package}
>>> print ${module_name_in_the_package}.__file__
  • 1. easy_installでコマンドを叩いて参照を削除する
easy_install -mxN ${package_name}
  • 2. 対象の${package_name}のeggファイルとディレクトリを削除する

Reference

28
26
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
28
26