Background
I would like to have a working python environment with python 2.7.12 and a series of packages. It shall be efficient, and yet easy to setup. The anaconda distribution almost satisfies my needs, except that it’s unreasonably slow to load, due to its bundle of system libraries. There are also python version managers such as PYENV and PYTHONZ. The drawback of PYENV is the shims, which are scripts to launch binaries such as python-2 and pip. shims make powerline-client slow, which is undesirable. As to PYTHONZ, it only handles multiple versions of python, no other infrastructure is provided.
After some experimentation, I found that just compile python from source and install it into customized location works just fine. There are some caveats, so I record it here.
I do not like this ideas is a linter test. Linter. How can one use it?