Help us understand the problem. What is going on with this article?

Ubuntuで個人環境にpythonパッケージをインストール

More than 5 years have passed since last update.

easy_install.pyでインストールされるパッケージが~/local以下になるように設定。
Ubuntu12.10にて。

/usr/local/lib/python2.7/dist-package/altinstall.pth

import os, site; site.addsitedir(os.path.expanduser('~/local/lib/python2.7'))

~/.pydistutils.cfg

[install]
install_lib = ~/local/lib/python2.7
install_scripts = ~/local/bin

これを参考にした。

インストール先が、~/libとかではなくて~/local/libとかなのは、個人的な趣味。他のconfigure-make系のシステムも--prefix=~/localとかできて楽。

hamukazu
主な使用言語:Haskell, ruby, C++
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away