Python攻略

python2.7.8
python

wget https://www.python.org/ftp/python/2.7.8/Python-2.7.8.tgz -nc -O ~/download/Python-2.7.8.tgz
tar xzvf ~/download/Python-2.7.8.tgz -C /tmp/
cd /tmp/Python-2.7.8/
./configure
make
sudo make install


setuptool
git

wget https://pypi.python.org/packages/source/s/setuptools/setuptools-6.0.2.tar.gz -nc -O ~/download/setuptools-6.0.2.tar.gz
tar xzvf ~/download/setuptools-6.0.2.tar.gz -C /tmp/
cd /tmp/setuptools-6.0.2/
sudo python setup.py install


distributegithub

wget https://pypi.python.org/packages/source/d/distribute/distribute-0.6.49.tar.gz -nc -O ~/download/distribute-0.6.49.tar.gz
tar xzvf ~/download/distribute-0.6.49.tar.gz -C /tmp/
cd /tmp/distribute-0.6.49/
sudo python setup.py install


pipshell

sudo aptitude -y install openssl libssl-dev
wget https://pypi.python.org/packages/source/p/pip/pip-1.5.6.tar.gz -nc -O ~/download/pip-1.5.6.tar.gz
tar xzvf ~/download/pip-1.5.6.tar.gz -C /tmp/
cd /tmp/pip-1.5.6/
sudo python setup.py install


ipython
python2.7

wget https://github.com/ipython/ipython/releases/download/rel-2.1.0/ipython-2.1.0.tar.gz -nc -O ~/download/ipython-2.1.0.tar.gz
tar xzvf ~/download/ipython-2.1.0.tar.gz -C /tmp/
cd /tmp/ipython-2.1.0/
sudo python setup.py install


cython
spa

wget http://cython.org/release/Cython-0.21.tar.gz -nc -O ~/download/Cython-0.21.tar.gz
tar xzvf ~/download/Cython-0.21.tar.gz -C /tmp/
cd /tmp/Cython-0.21/
sudo python setup.py install


nose
.net

wget https://pypi.python.org/packages/source/n/nose/nose-1.3.4.tar.gz -nc -O ~/download/nose-1.3.4.tar.gz
tar xzvf ~/download/nose-1.3.4.tar.gz -C /tmp/
cd /tmp/nose-1.3.4/
sudo python setup.py install


lapack
code

sudo aptitude -y install liblapack-dev


sympy
orm

wget https://github.com/sympy/sympy/releases/download/sympy-0.7.5/sympy-0.7.5.tar.gz -nc -O ~/download/sympy-0.7.5.tar.gz
tar xzvf ~/download/sympy-0.7.5.tar.gz -C /tmp/
cd /tmp/sympy-0.7.5/
sudo python setup.py install


numpyblog

wget http://jaist.dl.sourceforge.net/project/numpy/NumPy/1.9.0/numpy-1.9.0.tar.gz -nc -O ~/download/numpy-1.9.0.tar.gz
tar xzvf ~/download/numpy-1.9.0.tar.gz -C /tmp/
cd /tmp/numpy-1.9.0/
sudo python setup.py install


scipy

wget http://jaist.dl.sourceforge.net/project/scipy/scipy/0.14.0/scipy-0.14.0.tar.gz -nc -O ~/download/scipy-0.14.0.tar.gz
tar xzvf ~/download/scipy-0.14.0.tar.gz -C /tmp/
cd /tmp/scipy-0.14.0/
sudo python setup.py install


mock

wget https://pypi.python.org/packages/source/m/mock/mock-1.0.0.tar.gz -nc -O ~/download/mock-1.0.0.tar.gz
tar xzvf ~/download/mock-1.0.0.tar.gz -C /tmp/
cd /tmp/mock-1.0.0/
sudo python setup.py install


pyparsing

wget https://pypi.python.org/packages/source/p/pyparsing/pyparsing-2.0.3.tar.gz -nc -O ~/download/pyparsing-2.0.3.tar.gz
tar xzvf ~/download/pyparsing-2.0.3.tar.gz -C /tmp/
cd /tmp/pyparsing-2.0.3
sudo python setup.py install


six

wget https://pypi.python.org/packages/source/s/six/six-1.8.0.tar.gz -nc -O ~/download/six-1.8.0.tar.gz
tar xzvf ~/download/six-1.8.0.tar.gz -C /tmp/
cd /tmp/six-1.8.0
sudo python setup.py install


python-dateutil

wget https://pypi.python.org/packages/source/p/python-dateutil/python-dateutil-2.2.tar.gz -nc -O ~/download/python-dateutil-2.2.tar.gz
tar xzvf ~/download/python-dateutil-2.2.tar.gz -C /tmp/
cd /tmp/python-dateutil-2.2
sudo python setup.py install


matplotlib

wget https://downloads.sourceforge.net/project/matplotlib/matplotlib/matplotlib-1.4.0/matplotlib-1.4.0.tar.gz -nc -O ~/download/matplotlib-1.4.0.tar.gz
tar xzvf ~/download/matplotlib-1.4.0.tar.gz -C /tmp/
cd /tmp/matplotlib-1.4.0/
sudo python setup.py install


pytz

wget https://pypi.python.org/packages/source/p/pytz/pytz-2014.7.tar.gz -nc -O ~/download/pytz-2014.7.tar.gz
tar xzvf ~/download/pytz-2014.7.tar.gz -C /tmp/
cd /tmp/pytz-2014.7/
sudo python setup.py install


pandas

wget https://github.com/pydata/pandas/archive/v0.14.1.tar.gz -nc -O ~/download/pandas-0.14.1.tar.gz
tar xzvf ~/download/pandas-0.14.1.tar.gz -C /tmp/
cd /tmp/pandas-0.14.1/
sudo python setup.py install


fastlmm

wget https://pypi.python.org/packages/source/f/fastlmm/fastlmm-0.1.3.zip -nc -O ~/download/fastlmm-0.1.3.zip
unzip ~/download/fastlmm-0.1.3.zip -d /tmp/
cd /tmp/fastlmm-0.1.3
sudo python setup.py install


gpy

wget https://codeload.github.com/SheffieldML/GPy/zip/master -nc -O ~/download/GPy-master.zip
unzip ~/download/GPy-master.zip -d /tmp/
cd /tmp/GPy-master
sudo python setup.py install


scikit-leran

wget https://codeload.github.com/scikit-learn/scikit-learn/zip/master -nc -O ~/download/scikit-learn-master.zip
unzip ~/download/scikit-learn-master.zip -d /tmp/
cd /tmp/scikit-learn-master
sudo python setup.py install


warpedlmm

    詳見:http://my.oschina.net/u/1791586/blog/318736

相關文章
相關標籤/搜索