fc2ブログ

2012-01-30(Mon)

easy_installでインストールしたものをアンインストールする方法

そもそもアンインストールする手段は提供されてないらしい。
よって、リンクされている部分を検索し手作業で削除していく。

①リンク箇所を探す。
$ easy_install -m neo4j-embedded
Searching for neo4j-embedded
Best match: neo4j-embedded 1.6
Processing neo4j_embedded-1.6-py2.7.egg
Removing neo4j-embedded 1.6 from easy-install.pth file

Using /usr/local/lib/python2.7/dist-packages/neo4j_embedded-1.6-py2.7.egg

Because this distribution was installed --multi-version, before you can
import modules from this package in an application, you will need to
'import pkg_resources' and then use a 'require()' call similar to one of
these examples, in order to select the desired version:

pkg_resources.require("neo4j-embedded") # latest installed version
pkg_resources.require("neo4j-embedded==1.6") # this exact version
pkg_resources.require("neo4j-embedded>=1.6") # this version or higher

Processing dependencies for neo4j-embedded
Finished processing dependencies for neo4j-embedded


②で消す。
easy-install.pthの中のリンク箇所の削除
$ vim /usr/local/lib/python2.7/dist-packages/easy-install.pth
実体の削除
$ rm -rf /usr/local/lib/python2.7/dist-packages/neo4j_embedded-1.6-py2.7.egg


参考:
みんなのPython
Pythonスタートブック
プロフィール

kumagonjp2

Author:kumagonjp2
Python,Django,R,Mongo,MySQL,Struts,Spring,データマイニングなどサーバー関係のメモを残していきます。

最新記事
最新コメント
最新トラックバック
月別アーカイブ
カテゴリ
雪が3Dで降るブログパーツ ver2

マウスで見る方向変えられます

検索フォーム
RSSリンクの表示
リンク
ブロとも申請フォーム

この人とブロともになる

QRコード
QR