< 独立项目 - 文本挖掘 > - 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 ...
随机推荐
- 做完c语言作业的心得
算是第一次自己接触c语言,并不是很深入的了解了,但也完成了第一次课的作业.在没有复制粘贴的情况下,8遍的简单编程让我记下了它基本的格式. 实验1.2.3.7都是基本的输入字,和课上的练习差不多,巩固最 ...
- [原创]C#按比例缩放窗体控件及字体
按照比例缩放窗体控件及字体,如需等比例缩放,只需将x,y的比例设置成相同即可. 为了减小误差,建议使用原始尺寸来计算比例. private float X, Y; private bool b = f ...
- C++ / CLI 调用 C++ /Native 随记
C# 封装 原生C++ 方法:1.C++ CLR(托管) 调用 C++(原生)2.C#调用C++ CLR , 注意各个平台编译版本需一致.3.C# 默认编绎生成版本是 any cpu , 需修改成 ...
- 【C语言学习】-08 指针
指针
- [转]解决ubuntu下面putty不能连接RS232串口(USB2COM线)
http://m.blog.csdn.net/blog/wuyanrobert_tjsd/33045255 最后还是sudo了,感觉注销后没有加入dialout组
- 去掉安卓中activity的标题栏
去掉所有Activity界面的标题栏 修改AndroidManifest.xml 在application 标签中添加android:theme="@android:style/Theme. ...
- Qt之WebKit学习之绘图
void Serial::on_pushButton_clicked() { //scroll(4,0); flag_btn = true; // this->update(); //绘图绘在窗 ...
- The Layout Process on Mac OSX and iOS
First we will recap the steps it takes to bring views on screen with Auto Layout enabled. When you’r ...
- JDBC中的PreparedStatement
PreparedStatement类从Statement中继承来. 可以将SQL语句传给数据库做编译处理,即在执行的SQL语句中包含一个或多个IN参数,可以设置IN参数值多次执行SQL语句,不必重新给 ...
- Manacher
HDU 3068 Manacher裸题 #include <cstdio> #include <cstring> ; ],STR[Maxn<<]; ],Id,Mx; ...