您的位置:首页 > 运维架构 > Linux

linux下利用python进行数据分析(1)Anaconda 安装

2015-11-21 19:46 961 查看


《利用Python进行数据分析》这本书买到手了。不能闲着,马上开始动手实践。先从环境配置开始。

安装过程(参考官方文档
Anaconda官方文档)

系统:CentOS 7 (在Win10的Hyper-V上运行的虚拟机)

1.下载安装包放在任意目录

安装包:从官网下载 https://www.continuum.io/downloads#_unix
版本:Python2.7 Linux-64 bit

2.给安装包添加执行权限

chmod +x Anaconda2-2.4.0-Linux-x86_64.sh


3.执行安装包
注:安装包的路径需要根据实际的保存路径做修改

bash ~/Downloads/Anaconda-2.4.0-Linux-x86_64.sh


4.安装过程根据提示一路回车即可。如果需要改变安装目录,根据提示设定即可。
注意点:

NOTE: You do not need root privileges to install Anaconda if you accept the default or select a user-writable install location such as ~/anaconda.NOTE: If you choose the option to not add the Anaconda directory to your bash shell PATH environment variable, you may later add this line to the file .bashrc in your home directory, replacing the path with the path of your Anaconda binary directory and replacing “username” with your username: exportPATH="/home/username/anaconda/bin:$PATH"

5.安装完成后,关闭终端。重新打开一个终端,运行 ipython 进行安装验证。

[user@centos-hyperv ~]$ ipython
Python 2.7.10 |Anaconda 2.4.0 (64-bit)| (default, Oct 19 2015, 18:04:42)
Type "copyright", "credits" or "license" for more information.

IPython 4.0.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]:

出现上面的提示符,安装成功。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  python