自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(15)
  • 资源 (4)
  • 收藏
  • 关注

原创 flask开发RESTful架构的api–部署到nginx

本文进介绍怎么将flask 开发的 restful api部署到Nginx环境配置:python2.7 + linux 安装gunicorn: pip install gunicorn 安装nginx::参考http://www.runoob.com/linux/nginx-install-setup.htmlrestful api文件#app.pyfrom flas...

2018-05-09 11:31:59 2915

转载 Linux中Anaconda设置为默认python环境

1、若是用.sh文件安装,则在安装过程中选择yes将anaconda加入环境变量,则安装完成后,默认的python环境就为anaconda了,无需其他的操作; 2、若是复制已编译的anaconda文件,则需要手工添加环境变量:在终端输入$sudo gedit /etc/profile,打开profile文件。在文件末尾添加一行:export PATH=/home/grant/anacon...

2018-03-14 14:45:13 19286

原创 sparkling-water Unsupported argument: (spark.dynamicAllocation.enabled,true) on CDH

PYSPARK_DRIVER_PYTHON="ipython" bin/pysparkling from pysparkling import * import h2o hc = H2OContext.getOrCreate(spark) 此时会出现错误: Unsupported argument:(spark.dynamicAllocation.enabled,true) 查到如下解

2018-01-26 14:07:31 3389

原创 Bash: /gradlew: No such file or directory

在linux下使用./gradlew build -x check时出错:Bash: /gradlew: No such file or directory按这里操作解决了。 即:

2018-01-19 10:32:30 8921

原创 windows下安装rpy2及解决("Unable to locate R.dll within %s" % R_HOME)

在win7下使用pyculiarity来调用twitter的AnomalyDetection R包,需要安装R、rpy2。

2017-12-27 16:03:14 3000 4

原创 pyculiarity错误:No module named 'detect_vec'

打算使用Twitter 开源的anomaly detection R库,查了一下发现pyculiarity可以帮忙实现在python环境下调用这个R包。 安装完R、rpy2、pyculiarity之后,运行:from pyculiarity import detect_ts出现错误:No module named ‘detect_vec’ 但其实该文件是存在的。搜了一下,发现这里说到: 原来

2017-12-27 13:48:40 1559 1

原创 Error: package or namespace load failed for ‘utils’ in dyn.load(file, DLLpath = DLLpath, ...): unab

在linux下安装R(yum install R)后,运行R出现错误: Error: package or namespace load failed for ‘utils’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/usr/lib64/R/library/utils/libs/utils

2017-12-27 10:58:04 12189

原创 通过Python使用clamav进行病毒检测

1、 Linux下杀毒软件clamav的安装 2、在python中基于clamav进行病毒检测

2017-12-01 14:17:56 4862 4

原创 python Dataframe pandas 将数据分割成时间跨度相等的数据块

Python Dataframe pandas 将数据分割成时间跨度相等的数据块 有如下dataframe格式的数据,列名分别为date、ip,我需要统计每5s内出现的ip,以及这些ip出现的频数。

2017-11-21 12:03:09 11444 2

原创 Python学习笔记2——python的数据类型

#1 标示符与关键字使用无效的标示符会产生一个SyntaxError异常#2 integral类型python提供两种内置的integral类型,即int与bool。0与False表示False;其他任意整数与True表示True。在数字表达式中,True表示1;False表示0。因此,i+=True也有效。二进制数以0b引导,八进制以0o引导,十六进制以0x引导,大写字母

2015-03-12 18:23:59 629

原创 Python学习笔记1——python的关键要素

《Python3 程序开发指南》(第二版)Mark Summerfield著该书阅读笔记

2015-03-11 19:16:20 774

转载 Python 错误:Error: Inconsistent indentation detected!...

运行Python程序时,特别是把比人

2014-07-23 10:11:31 3673 2

原创 Python2.7 学习笔记1-列表

在列表中插入元素

2014-07-22 09:49:46 526

原创 Python 错误:UnicodeEncodeError: ‘ascii’ codec can’t encode characters in position...

代码:.......... #打开xml文档 dom = xml.dom.minidom.parse('E:\\test.xml') #得到文档元素对象 root = dom.documentElement itemlist = root.getElementsByTagName('word') fo

2014-07-19 19:21:26 1068

转载 cytoscape 安装后打开时出现错误:The JVM could not be started.....的解决方式

环境:java7 版本。Cytoscape 3.1版本错误

2014-07-18 11:32:57 20524 2

Practical Machine Learning with H2O

Machine learning has finally come of age. With H2O software, you can perform machine learning and data analysis using a simple open source framework that’s easy to use, has a wide range of OS and language support, and scales for big data. This hands-on guide teaches you how to use H20 with only minimal math and theory behind the learning algorithms.

2018-01-03

MySQLbd python2.7 win32

python2.7的程序要进行MySQL的数据库操作时,需要安装MySQLdb。 下载后直接点击.exe文件进行安装即可。

2015-06-19

python pmw模块

Python pmw模块,pmw的版本为2.0.0

2014-07-23

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除