編譯python & 安裝pip
編譯python
wget -c https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz
$ tar -xzvf Python-2.7.9.tgz
$ cd Python-2.7.9/
$ LDFLAGS="-L/usr/lib/x86_64-linux-gnu" ./configure --prefix=/home/shihyu/.mybin/python-2.7.9
$ make -j24
$ make install
- ~/.bashrc
export PATH="/home/shihyu/.mybin/python-2.7.9/bin:$PATH"
pip 安裝
python get-pip.py
pip install -U pip
使用pip 安裝Liberary
pip install ipython
pip install ipdb
pip install BeautifulSoup
pip install requests