Python数据分析 EPD
参考用书 《利用Python进行技术分析:Python for Data Analysis》
官方把epd (https://www.enthought.com/products/canopy/package-index/) 升级为Canopy(https://www.enthought.com/products/canopy/package-index/),为了尽可能和书籍一致,只能去其他地方想办法了
从这里下载离线镜像 http://mirror.seas.harvard.edu/epd/enthought.com/repo/free/
$wget http://mirror.seas.harvard.edu/epd/download.enthought.com/epd_free/epd_free-7.2-2-rh5-x86_64.sh
安装:http://courses.cs.washington.edu/courses/cse140/12su/computing-resources.html
#chmod u+x epd_free-7.2-2-rh5-x86_64.sh
$.epd_free-7.2-2-rh5-x86_64.sh
先让你接受协议,然后指定安装路径,如~/epd会自动安装依赖如下:
Do you approve the license terms? [yes|no]
[no] >>> yes
EPD_free will be installed to this location:
/home/jp/Downloads/epd_free-7.2-2-rh5-x86_64
* Press Enter to accept this location
* Press CTRL-C to abort
* or specify an alternate location. Please ensure that your location
contains only ASCII letters, numbers and the following punctuation
chars: '.', '_', '-'
[/home/jp/Downloads/epd_free-7.2-2-rh5-x86_64] >>> /home/jp/epd
Installing to /home/jp/epd ... please wait
Fixing RPATH...
Trying to run Python interpreter:
/home/jp/epd
Compiling all Python modules...
Extracting: '.zips/special.zip'
Bootstrapping: LOCAL-REPO/enstaller-4.4.1-1.egg
322 KB [.................................................................]
appinst-2.1.0-1.egg [installing]
107 KB [.................................................................]
cloud-2.3.9-1.egg [installing]
837 KB [.................................................................]
configobj-4.7.2-2.egg [installing]
244 KB [.................................................................]
distribute-0.6.24-1.egg [installing]
1.45 MB [.................................................................]
etsproxy-0.1.1-1.egg [installing]
1.03 MB [.................................................................]
Examples-7.2-0.egg [installing]
3.38 MB [.................................................................]
freetype-2.4.4-1.egg [installing]
2.78 MB [.................................................................]
idle-2.7.2-2.egg [installing]
73 KB [.................................................................]
ipython-0.12-1.egg [installing]
7.27 MB [.................................................................]
nose-1.1.2-1.egg [installing]
916 KB [.................................................................]
numpy-1.6.1-0.egg [installing]
26.24 MB [.................................................................]
PIL-1.1.7-3.egg [installing]
1.44 MB [.................................................................]
pyaudio-0.2.4-1.egg [installing]
218 KB [.................................................................]
pyface-4.1.0-1.egg [installing]
3.52 MB [.................................................................]
pyglet-1.1.4-2.egg [installing]
5.67 MB [.................................................................]
python_dateutil-1.5-2.egg [installing]
399 KB [.................................................................]
pytz-2011n-1.egg [installing]
913 KB [.................................................................]
pyzmq-2.1.11-1.egg [installing]
1.47 MB [.................................................................]
scipy-0.10.0-0.egg [installing]
107.06 MB [.................................................................]
tornado-2.1.1-1.egg [installing]
1.34 MB [.................................................................]
traits-4.1.0-1.egg [installing]
2.24 MB [.................................................................]
traitsui-4.1.0-1.egg [installing]
4.43 MB [.................................................................]
wxPython-2.8.10.1-3.egg [installing]
58.68 MB [.................................................................]
apptools-4.0.1-1.egg [installing]
1.68 MB [.................................................................]
enable-4.1.0-1.egg [installing]
5.31 MB [.................................................................]
matplotlib-1.1.0-1.egg [installing]
13.27 MB [.................................................................]
chaco-4.1.0-1.egg [installing]
2.90 MB [.................................................................]
EPD-7.2-0.egg [installing]
5 KB [.................................................................]
PythonDocHTML-2.7.2.egg [installing]
28.83 MB [.................................................................]
done.
As the last step, you should edit your .bashrc or prepend
the EPD_free install path:
/home/jp/epd/bin
Thank you for installing EPD_free!
然后安装padas
#sudo easy_install pandas
Error 1:
pkg_resources.VersionConflict: (numpy 1.6.1 (/home/jp/epd/lib/python2.7/site-packages), Requirement.parse('numpy>=1.7.0'))
$sudo pip install --upgrade numpy>=1.7.0
Error 2:
# Extra version check in case wxversion lacks AlreadyImportedError;
ImportError: Matplotlib backend_wx and backend_wxagg require wxPython >=2.8
#sudo pip install --upgrade wxPython>=2.8
http://stackoverflow.com/questions/5121574/wxpython-import-error
$sudo apt-get install libjpeg62
Error 3:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 72: ordinal not in range(128)
$sudo apt-get install libevent-dev python-dev
安装pandas
#sudo easy_install pandas
gcc编译 ,时间会比较久
安装完成后,
$ipython --pylab
import pandas
Error 4:ImportError: No module named pandas
检查了下原因,pandas确实是已经装了,只不过没有装在epd/bin下, epd/bin下的Python版本是2.7.2
系统自带的python 是2.7.6 ,结果把pandas装在系统自带的Python site-packages里了。现在就卡在这一步,先记录到这里再说。
Python数据分析 EPD的更多相关文章
- [Python数据分析]新股破板买入,赚钱几率如何?
这是本人一直比较好奇的问题,网上没搜到,最近在看python数据分析,正好自己动手做一下试试.作者对于python是零基础,需要从头学起. 在写本文时,作者也没有完成这个小分析目标,边学边做吧. == ...
- 【Python数据分析】Python3多线程并发网络爬虫-以豆瓣图书Top250为例
基于上两篇文章的工作 [Python数据分析]Python3操作Excel-以豆瓣图书Top250为例 [Python数据分析]Python3操作Excel(二) 一些问题的解决与优化 已经正确地实现 ...
- 【Python数据分析】Python3操作Excel(二) 一些问题的解决与优化
继上一篇[Python数据分析]Python3操作Excel-以豆瓣图书Top250为例 对豆瓣图书Top250进行爬取以后,鉴于还有一些问题没有解决,所以进行了进一步的交流讨论,这期间得到了一只尼玛 ...
- 【搬砖】【Python数据分析】Pycharm中plot绘图不能显示出来
最近在看<Python数据分析>这本书,而自己写代码一直用的是Pycharm,在练习的时候就碰到了plot()绘图不能显示出来的问题.网上翻了一下找到知乎上一篇回答,试了一下好像不行,而且 ...
- Python 数据分析(二 本实验将学习利用 Python 数据聚合与分组运算,时间序列,金融与经济数据应用等相关知识
Python 数据分析(二) 本实验将学习利用 Python 数据聚合与分组运算,时间序列,金融与经济数据应用等相关知识 第1节 groupby 技术 第2节 数据聚合 第3节 分组级运算和转换 第4 ...
- Python数据分析(二): Numpy技巧 (1/4)
In [1]: import numpy numpy.__version__ Out[1]: '1.13.1' In [2]: import numpy as np
- Python数据分析(二): Numpy技巧 (2/4)
numpy.pandas.matplotlib(+seaborn)是python数据分析/机器学习的基本工具. numpy的内容特别丰富,我这里只能介绍一下比较常见的方法和属性. 昨天晚上发了第一 ...
- Python数据分析(二): Numpy技巧 (3/4)
numpy.pandas.matplotlib(+seaborn)是python数据分析/机器学习的基本工具. numpy的内容特别丰富,我这里只能介绍一下比较常见的方法和属性. 昨天晚上发了第一 ...
- Python数据分析(二): Numpy技巧 (4/4)
numpy.pandas.matplotlib(+seaborn)是python数据分析/机器学习的基本工具. numpy的内容特别丰富,我这里只能介绍一下比较常见的方法和属性. 第一部分: ht ...
随机推荐
- CMD下修改mysql的root用户密码
文章转载自... CMD下,切换到mysql的bin目录下(目录加入到环境变量中绕过此步) 输入 mysql -u root -p,输入旧密码,进入mysql状态 MySQL>use MySQL ...
- 如何退出telnet
ctrl键+ENter键 然后输入 进入telnet 命令 quit
- 【辅助工具】Python实现微信跳一跳
最近迷上了微信跳一跳小游戏,正好也看到知乎上有大神分享了技术贴,我也参考了好多资料,原理就是通过abd命令截取图片,python计算两个点距离,然后转化按压时间,让电脑来完成游戏.我花了很长时间才把程 ...
- 【hdu1705】Count the grid(皮克定理)
链接:http://acm.hdu.edu.cn/showproblem.php?pid=1705 [题意] 给出平面上三个点坐标,求围成的三角形内部的点数 做这道题需要先了解下皮克定理. 百度百科: ...
- LeetCode OJ:Word Search(单词查找)
Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from l ...
- Qt中切换窗口功能的实现
两条语句就能够实现了: this->newNC.setWindowFlags(Qt::WindowStaysOnTopHint); this->newNC.show(); mark一下,防 ...
- C++轮子队 敏捷冲刺
团队Github地址:https://github.com/Pryriat/2048.git 敏捷开发——第1天 Alpha阶段第1次Scrum Meeting 敏捷开发起始时间 2018/10/27 ...
- JavaScript: Where to Insert JavaScript and output
1.Javescript in <head> <!DOCTYPE html> <html> <head> <script> function ...
- react: typescript-webpack项目基本配置
1.webpack.config.js basic const webpack = require('webpack'); const autoprefixer = require('autopref ...
- Agilent RF fundamentals (10) Mixer ,Phase domain and modulator
1 Mixer characterization DC input Bias voltage Bias Current RF input Lo input IF output 2 mixer devi ...