< 独立项目 - 文本挖掘 > - 2016/11/13 第二更 - <Python环境准备>
< 独立项目 - 文本挖掘 >
项目立项的相关背景介绍,TODO方向。
一、Ubuntu环境配置
主机系统:Windows 7 SP1 64位操作系统 | i5-4210 CPU | 16GB RAM
VirtualBox虚拟环境:GUN VitrualBox
Linux系统:Ubuntu 15.10(ubuntu-15.10-desktop-i386)
二、Python模块的安装
1、python当前版本检查
sylar@SylarMining:~$ python --version
Python 2.7.10
2、查看当前安装模块
sylar@SylarMining:~$ python
>>>help()
help>modules
Please wait a moment while I gather a list of all available modules......
help>quit
You are now leaving help and returning to the Python interpreter . If you want to ask for help on a particular object directly from the interpreter,you can type "help(object)" .
>>>import sys
>>>sys.modules
3、查看模块的版本信息
>>>import module
>>>module.__version__
>>>quit()
4、常用Python模块的安装
先进行pip工具的安装:sudo apt-get install python-pip
安装:pip install PackageName 更新:pip install -U PackageName 移除:pip uninstall PackageName 搜索:pip search PackageName 帮助:pip help
#查看已经安装的模块:List installed packages
sylar@SylarMining:~$ pip list
sylar@SylarMining:~$ wget https://pypi.python.org/pypi/setuptools
sylar@SylarMining:~$ pip --version
pip 1.5.6 from /usr/lib/python2.7/dist-packages(python2.7)
#安装setuptools:
sylar@SylarMining:~$ sudo apt-get install python-setuptools
#查看Ubuntu中安装的Python路径
sylar@SylarMining:~$ whereis python
python:/usr/bin/python2.7
sylar@SylarMining:~$ which python
/usr/bin/python
#安装numpy模块和matplotlib模块
sylar@SylarMining:~$ sudo apt-get install python-numpy
sylar@SylarMining:~$ sudo apt-get install python-scipy
sylar@SylarMining:~$ sudo apt-get install python-matplotlib
#安装Python开发环境
sylar@SylarMining:~$ sudo apt-get install python-dev
#安装IPython
sylar@SylarMining:~$ sudo apt-get install ipython
#安装tornado
sylar@SylarMining:~$ sudo apt-get install tornado
#安装libzmq-dev
sylar@SylarMining:~$ sudo apt-get install libzmq-dev
#安装scikit-learn模块(sklearn)
sylar@SylarMining:~$ sudo apt-get install python-sklearn
#安装pandas
sylar@SylarMining:~$ sudo apt-get install python-pandas
#安装patsy
sylar@SylarMining:~$ sudo apt-get install python-patsy
#安装statsmodels
sylar@SylarMining:~$ sudo apt-get install python-statsmodels
#安装g++
sylar@SylarMining:~$ sudo apt-get install g++
#安装jieba
sylar@SylarMining:~$ pip install jieba
#安装NLTK
sylar@SylarMining:~$ sudo apt-get install python-nltk
#安装MLpy
sylar@SylarMining:~$ sudo apt-get install python-mlpy
#安装Shogun
sylar@SylarMining:~$ sudo apt-get install python-shogun
#安装MDP
sylar@SylarMining:~$ sudo apt-get install python-mdp
#安装PyBrain
sylar@SylarMining:~$ pip install pybrain
#安装BigML
sylar@SylarMining:~$ pip install bigml
< 独立项目 - 文本挖掘 > - 2016/11/13 第二更 - <Python环境准备>的更多相关文章
- < 独立项目 - 文本挖掘 > - 2016/10/25 第一更 - <Linux相关知识准备>
< 独立项目 - 文本挖掘 > 项目立项的相关背景介绍,TODO方向. 一.Ubuntu环境配置 主机系统:Windows 7 SP1 64位操作系统 | i5-4210 CPU | ...
- 11.13的C++##不想写结构,更不爱指针
//2019.11.13 卑微的Loving-Q瞎写的程序 报错请更改VS中的SDL检查// 我要去嗨了,在线卑微 1 #include<iostream> #include<std ...
- github javascript相关项目star数排行榜(前30,截止2016.11.18):
github javascript相关项目star数排行榜(前30,截止2016.11.18): 前端开源框架 TOP 100 前端 TOP 100:::::https://www.awesomes. ...
- .NET平台开源项目速览(11)KwCombinatorics排列组合使用案例(1)
今年上半年,我在KwCombinatorics系列文章中,重点介绍了KwCombinatorics组件的使用情况,其实这个组件我5年前就开始用了,非常方便,麻雀虽小五脏俱全.所以一直非常喜欢,才写了几 ...
- 【读书笔记】2016.11.19 北航 《GDG 谷歌开发者大会》整理
2016.11.19 周六,我们在 北航参加了<GDG 谷歌开发者大会>,在web专场,聆听了谷歌公司的与会专家的技术分享. 中午免费的午餐,下午精美的下午茶,还有精湛的技术,都是我们队谷 ...
- U3D笔记11:47 2016/11/30-15:15 2016/12/19
11:47 2016/11/30Before you can load a level you have to add it to the list of levels used in the gam ...
- [ionic开源项目教程] - 第11讲 封装BaseController实现controller继承
关注微信订阅号:TongeBlog,可查看[ionic开源项目]全套教程. 截止到第10讲,tab1[健康]模块的功能基本已经完成了,但这一讲中,controller层又做了较大的改动,因为下一讲中t ...
- 最新的 cocoapods 安装与使用(2016.11)
cocoapods简介: cocoapods 是iOS的类库管理工具,可以让开发者很方便集成各种第三方库,而不用去网站上一个个下载,再一个个文件夹的拖进项目中,还得添加相关的系统依赖库.只需要安装好c ...
- iOS app提交审核 11.13条款问题
今年开年到现在.提交app应用一直招拒,这个问题我想不明白,感觉就是一个坑.所以贴出来给大家看看. 发件人 Apple11.13 - Apps that link to external mechan ...
随机推荐
- phpstormn 中 xdebug 的详细配置2
配置PHPStorm 图1:首先配置PHP解释器的路径 图2:File>Settings>PHP>Servers,这里要填写服务器端的相关信息,name填localhost,host ...
- github 使用教程初级版
github 是一个基于 git 的代码托管平台,付费用户可以建私人仓库,免费用户只能使用公共仓库.对于一般人来说公共仓库就已经足够了,而且也没多少代码来管理.下面简单介绍如何使用 github,供初 ...
- Spring知识点
IOC: Inversion of Control 控制反转 ①自己控制→容器控制 ②控制具体实现→控制抽象(接口) DI:Dependency Injection 依赖注入 依赖于容器注入的对象 注 ...
- SSM框架学习之高并发秒杀业务--笔记1-- 项目的创建和依赖
在慕课网上看了Java高并发秒杀API视屏后,觉得这个案例真的让我学到了很多,现在重新自己实现一遍,博客记下,顺便分析其中的要点. 第一步是项目的创建和依赖 利用Maven去创建工程然后导入Idea中 ...
- Java:多线程<三>死锁、线程间通讯
死锁: 同步嵌套同步,而且使用的锁不是同一把锁时就可能出现死锁 class Test implements Runnable { private boolean flag; Test(boolean ...
- JavaEE SSH框架整合(四) 日志处理Spring结合 log4j、slf4j [转]
1. 加入log4j和slf4j的jar包 2. web.xml: <context-param> <!--log4j配置地址 --> <param-name>lo ...
- .htaccess更改目录下的默认主页
我们知道apache的配置文件httpd.conf可以配置网站目录的默认主页.配置文件该部分定义如下: #DirectoryIndex: sets the file that Apache will ...
- 省常中模拟 day2
第一题: 题目大意: 有mn颗糖,要装进k个盒子里,使得既可以平均分给n个人,也可以平均分给m个人. 求k的最小值. 解题过程: 1.先看一组小数据(13,21).那么根据贪心的原则很容易想到先拿13 ...
- 记录一些容易忘记的属性 -- UIScrollView
UIScrollView * sv = [[UIScrollView alloc] init]; //设置是否显示水平滚动条 sv.showsHorizontalScrollIndicator ...
- Excel Access 新建空白文档/打开已有文档 提示内存或磁盘空间不足的解决方法--验证
服务器上发现,打开mdb数据库,点知道只有个空白的截面,打开已有的excel文件,一样,但多了个提示:内存磁盘空间不足或者关闭不再使用的工作表或者程序.检查过,内存和磁盘很充裕啊.那里不足啊,任务管理 ...