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动态类型的学习---引用的理解
- Python3写爬虫(四)多线程实现数据爬取
- 垃圾邮件过滤器 python简单实现
- 下载并遍历 names.txt 文件,输出长度最长的回文人名。
- install and upgrade scrapy
- Scrapy的架构介绍
- Centos6 编译安装Python
- 使用Python生成Excel格式的图片
- 让Python文件也可以当bat文件运行
- [Python]推算数独
- Python中zip()函数用法举例
- Python中map()函数浅析
- Python将excel导入到mysql中
- Python在CAM软件Genesis2000中的应用
- 使用Shiboken为C++和Qt库创建Python绑定
- FREEBASIC 编译可被python调用的dll函数示例
- Python 七步捉虫法