自定义python模块路径:
方法一:
$ mkdir ~/.pip
$ mkdir ~/.python
$ vi ~/.pip/pip.conf
[install]
install-option=--prefix=~/.python
:wq
$ pip install xxxx
方法二:
如下载好的python模块scons
$ tar zxfv scons-3.0.0.tar.gz
$ cd scons-3.0.0
$ mkdir ~/mypython/lib/python
$ python setup.py install --home ~/mypython/
$ vi ~/.bashrc
export PYTHONPATH=~/mypython/lib/python:$PYTHONPATH
:wq
$ source ~/.bashrc
$ python
import scons