设为首页 收藏本站
查看: 1453|回复: 0

[经验分享] Python数据分析 EPD

[复制链接]

尚未签到

发表于 2015-11-30 13:36:06 | 显示全部楼层 |阅读模式
  参考用书 《利用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里了。现在就卡在这一步,先记录到这里再说。

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-145410-1-1.html 上篇帖子: windows python 打印utf-8乱码 下篇帖子: 第一章 python中重要的数据结构(上)
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表