python
csdn_书剑
这个作者很懒,什么都没留下…
展开
-
python爬取B站视频
【代码】python爬取B站视频。原创 2024-03-31 15:57:10 · 18097 阅读 · 20 评论 -
python pmml模型读取调用
之前一直在找pmml模型的读取调用,但是找的是java,jpmml的jar包,之前无意间查到python有个叫sklearn_model_pmml的模块连接:https://pypi.org/project/sklearn-pmml-model/有时间研究一下...原创 2020-03-14 11:24:34 · 5812 阅读 · 8 评论 -
使用Pyinstaller 打包依赖sklearn2pmml的py程序,需要引入资源文件
使用pyinstaller打包时,需要注意使用的模块是否有依赖额外的文件,不然会被坑的。例如,sklearn2pmml 模块,其内部依赖着其他jar包,而这些jar包在使用pyinstaller打包的时候是不会自动引入的。这就坑了,明明打包成功,但是一执行就报错。现在有两个解决办法:1、使用.spec文件打包(pyinstaller -F .spec),在datas里面加入资源路径别以为...原创 2020-03-14 11:19:22 · 697 阅读 · 0 评论 -
Pyinstaller 打包exe 出现PermissionError: [Errno 13] Permission denied: 'C:\\...\ucrtbase.dll 的问题
使用Pyinstaller对python程序进行打包,特别容易出问题,一旦陷入坑了,爬出来都要半天。之前就遇到一个问题,PermissionError: [Errno 13] Permission denied: 'C:\\...\ucrtbase.dll造成错误的原因是没有权限:1、ucrtbase.dll 不存在 ,(这个是存在就下python目录下)2、ucrtbase.dll 文...原创 2020-03-14 10:43:17 · 9597 阅读 · 16 评论 -
python sklearn2pmml与dill的冲突 UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 2
基于Python3环境当模块导入顺序为:import dillfrom sklearn2pmml import PMMLPipelinefrom sklearn2pmml import sklearn2pmml 程序报错:print("Standard error:\n{0}".format(error.decode("UTF-8")))UnicodeDecodeErr...原创 2018-12-03 16:16:11 · 740 阅读 · 0 评论 -
windows python3库pydot运行出现:FileNotFoundError: [WinError 2] "dot" not found in path.
测试代码: from sklearn.datasets import load_iris from sklearn import tree iris = load_iris() clf = tree.DecisionTreeClassifier() clf = clf.fit(iris.data, iris.target) from sklearn...原创 2018-12-03 18:13:53 · 13192 阅读 · 28 评论 -
使用pip2pi搭建自己的pip源
最近在搭建python环境时遇到断网的情况,往往模块下载到一半就停了,虽然换成国内的镜像也可以勉强解决问题,但是还是升起了搭建一个本地的pip源,不怕断网。 步骤如下:1.安装python 3.5.42.安装pip2pipip install pip2pi3.安装nginxyum install nginx可能会遇到错误说没有可用软件包 nginx解决方案:(参...原创 2018-12-17 18:31:43 · 2278 阅读 · 0 评论