Set the packages installed by easy_install.py to be under ~ / local. On Ubuntu 12.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
I referred to this.
It's my personal hobby that the installation destination is ~ / local / lib instead of ~ / lib. Other configure-make systems can also be easily done with --prefix = ~ / local.
Recommended Posts