![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
机器学习经验总结
书涵baci
这个作者很懒,什么都没留下…
展开
-
【已解决】AttributeError: module ‘pandas‘ has no attribute ‘Series‘
【已解决】AttributeError: module 'pandas' has no attribute 'Series'原创 2023-02-24 14:20:25 · 8829 阅读 · 1 评论 -
已解决:`anonymous-namespace‘::SourceReaderCB::~SourceReaderCB terminating async callback
问题描述opencv警告异常:解决方法:第一种: 修改代码,添加一个参数;将 cap = cv2.VideoCapture(0)改为:cap = cv2.VideoCapture(0, cv2.CAP_DSHOW)第二种:】windows系统下,运行命令cmd打开终端并输入下列代码:setx OPENCV_VIDEOIO_PRIORITY_MSMF 0...原创 2022-04-13 20:29:47 · 10536 阅读 · 6 评论 -
DeprecationWarning: Using or importing the ABCs from ‘collections‘ instead of from ‘collections.abc‘
问题描述使用 from collections import Iterable 时出现了如下警告:问题分析这个异常报错是导入collections的原因,上面说python3.8版本不在支持collections,建议使用collections.abc解决方法# from collections import Iterablefrom collections.abc import Iterableprint(isinstance('abc', Iterable))把col原创 2022-04-13 20:04:33 · 2183 阅读 · 0 评论 -
ModuleNotFoundError: No module named ‘pip‘成功解决
问题描述Python学习遇到小问题:ModuleNotFoundError: No module named ‘pip’升级新版pip 之后,不论是本地,还是使用anaconda环境,都有可能在用pip下载的时候出现错误ModuleNotFoundError: No module named 'pip’这个错误。解决办法依次输入下列两行代码python -m ensurepippython -m pip install --upgrade pip等待运行完成再次..原创 2022-04-12 13:30:48 · 2550 阅读 · 0 评论 -
ModuleNotFoundError: No module named ‘paddle‘成功解决
问题描述解决方法pip install paddlepaddle -i https://mirror.baidu.com/pypi/simple原创 2022-04-11 23:02:13 · 21192 阅读 · 5 评论 -
ModuleNotFoundError: No module named ‘paddlehub‘成功解决
PaddleHub简介PaddleHub是基于PaddlePaddle生态下的预训练模型管理和迁移学习工具,可以结合预训练模型更便捷地开展迁移学习工作。通过PaddleHub,可以便捷地获取PaddlePaddle生态下的所有预训练模型,涵盖了图像分类、目标检测、词法分析、语义模型、情感分析、语言模型、视频分类、图像生成、图像分割九类主流模型。 更多详情可查看官网:https://www.paddlepaddle.org.cn/hub通过PaddleHub Fine-tune API,结合少量代原创 2022-04-11 22:56:13 · 5473 阅读 · 0 评论 -
AttributeError: module ‘tensorflow‘ has no attribute ‘random_normal‘
问题描述在进行模型搭建的时候出现:AttributeError: module 'tensorflow' has no attribute 'random_normal'这个问题报错原因TensorFlow2.0及以上版本已经把random_normal方法换为:random.normal 了解决方法把random_normal改为random.normal...原创 2022-04-10 23:10:52 · 1341 阅读 · 0 评论 -
Could not load dynamic library ‘cudart64_101.dll‘
问题描述出现了一堆缺少dll文件的报错,这里只是其中一个,还有好多文件。解决方法方法1点击链接下载cudart64_101.dll放置cudart64_101.dll到指定文件夹验证代码import tensorflow as tfimport osos.environ['TF_CPP_MIN_LOG_LEVEL']='2'print(tf.__version__)a = tf.constant(1.)b = tf.constant(2.)prin...原创 2022-04-10 18:19:22 · 1874 阅读 · 0 评论 -
ImportError: cannot import name ‘get_config‘ from ‘tensorflow.python.eager.context‘
报错信息解决方法方法1pip install --upgrade tensorflow -i https//pypi.douban.com/simple方法2from keras.layers import Input改为from keras.layers import Input原创 2022-04-10 15:09:32 · 864 阅读 · 1 评论 -
ModuleNotFoundError: No module named ‘tensorflow.compat‘
报错信息解决方法pip install tensorflow==2.3.1 -i https://pypi.douban.com/simple原创 2022-04-10 14:56:24 · 2871 阅读 · 0 评论