< 独立项目 - 文本挖掘 > - 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 ...
随机推荐
- linux下打包命令的使用
Unix系统业务使用(特别是数据管理与备份)中,经过一番研究.整理后,充分利用Unix系统本身的命令tar.cpio和compress等来做到打包和压缩,使之充当类似DOS下的压缩软件,同时在Unix ...
- /proc/stat文件详解(翻译)
原文地址:http://www.linuxhowtos.org/System/procstat.htm 各种关于系统内核的活动信息都可以在/proc/stat文件中找到,该文件记录了自系统第一次启动以 ...
- ADO.NET 增、删、改、查
ADO.NET:数据访问技术 就是将C#和MSSQL连接起来的一个纽带 可以通过ADO.NET将内存中的临时数据写入到数据库中也可以将数据库中的数据提取到内存中供程序调用 所有数据访问技术的基础 连接 ...
- 微信网页授权,微信登录,oauth2
微信官方文档: http://mp.weixin.qq.com/wiki 微信公众平台OAuth2.0授权详细步骤如下: 1. 用户关注微信公众账号.2. 微信公众账号提供用户请求授权页面URL.3. ...
- codeforces 451D Count Good Substrings
题意:给定一个字符串,求有多少个奇数子串和多少偶数子串为 “回文串” 这边回文串很特殊之含有 ab 两种字母 而且 相邻的字母相同则消去一个 一直到不存在相邻的相同. 思路: 在这种串 ...
- OC测试错误整理
3. NSDictionary *dict = [NSDictionary dictionaryWithObject:@"a value" forKey:@"aKey&q ...
- MATLAB 图像操作基础
I = imread('pout.tif'); imshow(I): figure imhist(I) I2 = histeq(I); figure imshow(I2) imwrite (I2, ' ...
- android 总结(样式)—跑马灯 button的点击效果 RadioGroup 实现滑动的效果 button 下面有阴影 卡片样式
<Button android:layout_width="wrap_content" android:layout_height="wrap_content&qu ...
- Java xml object 互转
public class ClassRoom { private int id; private String name; private int grade; public int getId() ...
- OpenResty 安装及使用(第一篇安装)
OpenResty搭建 1.openResty介绍 OpenResty (也称为 ngx_openresty)是一个全功能的 Web 应用服务器.它打包了标准的 Nginx 核心,很多的常用的第三方模 ...