【Python学习】python不要使用任何模块名作为文件名(module 'xgboost' has no attribute 'DMatrix')
来源:互联网 发布:天刀捏详细步骤脸数据 编辑:程序博客网 时间:2024/05/22 08:07
今天第一次上手xgboost,上午按照安装教程吧xgboost装上,然后各种用得不亦乐乎,晚上关电脑吃饭去,回来开电脑想继续回味xgboost,发现一运行就出现了 module 'xgboost' has no attribute 'DMatrix'这个问题,心灰意冷。。。最后发现是自己python的文件命开机手痒命名成xgboost了,换了之后一切正常,从中又学到了一个小知识点,注意不要使用任何模块名为文件名。
0 0
- 【Python学习】python不要使用任何模块名作为文件名(module 'xgboost' has no attribute 'DMatrix')
- 出现module 'xgboost' has no attribute 'DMatrix'的临时解决方法
- python文件名不要跟模块名相同,报错AttributeError: 'module' object has no attribute 'Differ'
- xgboost异常AttributeError: 'DMatrix' object has no attribute 'handle'
- Python基础学习-'module' object has no attribute 'urlopen'解决方法
- python文件名与module名冲突,出错'module' object has no attribute 'strftime'
- python-module 'pymysql' has no attribute 'connect'
- python报错:module has no Attribute'***'
- python:module 'pickle' has no attribute 'dump'
- 学习Python csv模块遇到AttributeError: module 'csv' has no attribute 'writer'和写入后出现空格问题
- [Python]attributeError:'module' object has no attribute 'dump'
- [python错误]builtins.AttributeError: 'module' object has no attribute 'request'
- python运行不了 AttributeError: module object has no attribute getdefaultlocale
- python AttributeError: 'module' object has no attribute 'setdefaultencoding'
- python运行不了 AttributeError: module object has no attribute getdefaultlocale
- python AttributeError: 'module' object has no attribute 'dumps'解决办法
- Python中module 'urllib' has no attribute 'openurl'问题
- Python AttributeError: 'module' object has no attribute xxxx
- Java对象的序列化和反序列化及其实现和使用
- 有关Android活动——写给自己看
- 顺序结构、动态链表结构下的一元多项式的加法、减法等的实现
- 【redis】redis的bind配置
- JSP内容整理之JavaBeans与JSP动作元素
- 【Python学习】python不要使用任何模块名作为文件名(module 'xgboost' has no attribute 'DMatrix')
- c++:vector类编写简易通讯录
- react native Warning: setState(...): Can only update a mounted or mounting component.
- JavaScript中变量的声明以及如何使用
- HTML/CSS第一次作业(小薇学院任务)
- leetcode109
- 编写第一个Spring 的helloword
- crazy java(精粹版) 补充笔记--1(持续更新)
- 第五届省赛javaA组- 熊怪吃核桃