Ubuntu14.04中安装python的gui(idle),并安装jieba,numpy,scipy和matplotlib

来源:互联网 发布:时序数据挖掘 编辑:程序博客网 时间:2024/06/07 02:09

1.安装Python的GUI(IDLE)

自认为python的GUI还是比较好用的,所以在Ubuntu14.04上进行了尝试。ubuntu默认安装好了python,但是并没有安装IDLE需要我们使用简单的命令:sudo apt-get install idle

2.安装中文分词工具结巴(jieba)

最近在做数据挖掘的作业,要用到jieba,所以不得不安装。github上的安装方法并不能正确安装,找了些帖子总结了下,安装步骤:
1).git clone https://github.com/fxsjy/jieba.git
2).cd jieba
3). git checkout jieba3k
4).python setup.py install

3.安装科学计算工具numpy,scipy和matplotlib

ubuntu14.04中已经有自带的包可以使用命令来安装,如下
sudo apt-get install python-numpy
sudo apt-get install python-scipy
sudo apt-get install python-matplotlib

4.验证是否已经安装好

在terminal中输入idle,并在idle中输入import numpy, import scipy ,import matplotlib,查看是否正确安装

0 0
原创粉丝点击