Anaconda 2python
官方:https://www.anaconda.com/linux
The Most Popular Python Data Science Platformide
Anaconda® is a package manager, an environment manager, a Python/R data science distribution, and a collection of over 1,500+ open source packages. Anaconda is free and easy to install, and it offers free community support.測試
anaconda是一個package管理器,一個環境管理器,一個python/r語言的數據科學發佈包,包含1500+開源包;anaconda是免費的而且很容易安裝,提供免費社區支持;ui
Packages available in Anacondaorm
# wget https://repo.continuum.io/archive/Anaconda2-2018.12-Linux-x86_64.sh
# chmod u+x Anaconda2-2018.12-Linux-x86_64.sh
# ./Anaconda2-2018.12-Linux-x86_64.shblog
經常使用的numpy、pandas、scikit-learn、scipy、matlotlib等包都已安裝好,另外還能夠下載tensorflow等,ip
$ python
# scipy
import scipy
print('scipy: %s' % scipy.__version__)
# numpy
import numpy
print('numpy: %s' % numpy.__version__)
# matplotlib
import matplotlib
print('matplotlib: %s' % matplotlib.__version__)
# pandas
import pandas
print('pandas: %s' % pandas.__version__)
# statsmodels
import statsmodels
print('statsmodels: %s' % statsmodels.__version__)
# scikit-learn
import sklearn
print('sklearn: %s' % sklearn.__version__)ci
單獨測試一下numpyget
# pythonPython 2.7.5 (default, Oct 30 2018, 23:45:53) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux2Type "help", "copyright", "credits" or "license" for more information.>>> from numpy import *>>> a = arange(15).reshape(3, 5)>>> a.shape(3, 5)>>> a.ndim2>>> a.dtype.name'int64'>>> a.itemsize8>>> a.size15>>> type(a)<type 'numpy.ndarray'>>>>