0%

使用conda搭建python数据分析开发环境

使用conda搭建python数据分析开发环境

打算在ubuntu下搭建python的数据分析开发环境,需要安装ipython、numpy、matplotlib、scipy、myayvi。开始使用virtualenv+pip,下载龟速不说,安装总是出错。在stackoverflow上有人推荐使用conda代替virtualenv。conda官方文档的介绍:

Conda is an open source package management system and environment management system for installing multiple versions of software packages and their dependencies and switching easily between them. It works on Linux, OS X and Windows, and was created for Python programs but can package and distribute any software.

我的机器中本来安装有anaconda2,于是运行:

1
$anaconda2/bin/conda create -n pydatatest ipython matplotlib numpy scipy mayavi

安装过程:
安装
结束

一个完备的环境搭建好了,激活环境:

1
$source activate pydatatest

关闭环境:
1
$source deactivate