The open-source Anaconda Distribution is the easiest way to perform Python/R data science and machine learning on Linux, Windows, and Mac OS X.

下载

官网下载

基础服务系列-Windows10 安装Anaconda&TensorFlow_开源

安装

双击默认安装

基础服务系列-Windows10 安装Anaconda&TensorFlow_bsd_02

基础服务系列-Windows10 安装Anaconda&TensorFlow_机器学习_03

验证

基础服务系列-Windows10 安装Anaconda&TensorFlow_机器学习_04

conda info

基础服务系列-Windows10 安装Anaconda&TensorFlow_bsd_05

创建Python Env

conda create -n tfenv

基础服务系列-Windows10 安装Anaconda&TensorFlow_数据分析工具_06

activate tfenv

基础服务系列-Windows10 安装Anaconda&TensorFlow_bsd_07

Install Tensorflow

conda install tensorflow

基础服务系列-Windows10 安装Anaconda&TensorFlow_开源_08

基础服务系列-Windows10 安装Anaconda&TensorFlow_数据分析工具_09

Verifying the Installation

import tensorflow as tf

基础服务系列-Windows10 安装Anaconda&TensorFlow_数据分析工具_10

没有错误,安装正常。

安装数据科学三剑客

  • pandas
  • numpy
  • matplotlib

Install pandas

Pandas是一个开源的,BSD许可的库,为Python编程语言提供高性能,易于使用的数据结构和数据分析工具。

conda install pandas

基础服务系列-Windows10 安装Anaconda&TensorFlow_python_11

基础服务系列-Windows10 安装Anaconda&TensorFlow_数据分析工具_12

Verifying the Installation

import pandas as pd

基础服务系列-Windows10 安装Anaconda&TensorFlow_机器学习_13

Install numpy

NumPy是Python中的一个运算速度非常快的一个数学库,它非常重视数组。

它允许你在Python中进行向量和矩阵计算,并且由于许多底层函数实际上是用C编写的,因此你可以体验在原生Python中永远无法体验到的速度。

conda install numpy

基础服务系列-Windows10 安装Anaconda&TensorFlow_bsd_14

Verifying the Installation

import numpy as np

基础服务系列-Windows10 安装Anaconda&TensorFlow_机器学习_15

Install matplotlib

Matplotlib是一个Python 2D绘图库,可以生成各种硬拷贝格式和跨平台交互式环境的出版物质量数据。

conda install matplotlib

基础服务系列-Windows10 安装Anaconda&TensorFlow_数据分析工具_16

Verifying the Installation

import matplotlib as mlb

基础服务系列-Windows10 安装Anaconda&TensorFlow_开源_17

Install scikit-learn

scikit-learn 是基于 Python 语言的机器学习工具。

  • 简单高效的数据挖掘和数据分析工具
  • 可供大家在各种环境中重复使用
  • 建立在 NumPy ,SciPy 和 matplotlib 上
  • 开源,可商业使用 - BSD许可证

conda install -c anaconda scikit-learn

基础服务系列-Windows10 安装Anaconda&TensorFlow_开源_18

Verifying the Installation

import sklearn as sn

基础服务系列-Windows10 安装Anaconda&TensorFlow_开源_19

参考

Installation with Anaconda