1. 程式人生 > >【原創】算法基礎之Anaconda(1)簡介、安裝、使用

【原創】算法基礎之Anaconda(1)簡介、安裝、使用

https orf ati 2.7 容易 ice range gcc x86_64

Anaconda 2

技術分享圖片

官方:https://www.anaconda.com/

一 簡介

The Most Popular Python Data Science Platform

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是免費的並且很容易安裝,提供免費社區支持;

Packages available in Anaconda

  • Over 200 packages are automatically installed with Anaconda.
  • Over 2000 additional open source packages (including R) can be individually installed from the Anaconda repository with the conda install command.
  • Thousands of other packages are available from Anaconda Cloud.
  • You can download other packages using the pip install command that is installed with Anaconda. Pip packages provide many of the features of conda packages and in some cases they can work together. However, the preference should be to install the conda package if it is available.
  • You can also make your own custom packages using the conda build command, and you can share them with others by uploading them to Anaconda Cloud, PyPi or other repositories.

二 安裝

# 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.sh

三 使用

常用的numpy、pandas、scikit-learn、scipy、matlotlib等包都已安裝好,另外還可以下載tensorflow等,來測試一下numpy

# python
Python 2.7.5 (default, Oct 30 2018, 23:45:53)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from numpy import *
>>> a = arange(15).reshape(3, 5)
>>> a.shape
(3, 5)
>>> a.ndim
2
>>> a.dtype.name
‘int64‘
>>> a.itemsize
8
>>> a.size
15
>>> type(a)
<type ‘numpy.ndarray‘>
>>>

【原創】算法基礎之Anaconda(1)簡介、安裝、使用