LoginSignup
5
4

More than 5 years have passed since last update.

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

Posted at

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とかできて楽。

5
4
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
5
4