首页
移动开发
物联网
服务端
编程语言
企业开发
数据库
业界资讯
其他
搜索
【debug】通用bug集中修复: (most likely due to a circular import)
企业开发
2023-07-12 03:05:50
阅读次数: 0
本文想要下写什么
问题描述:
ImportError: cannot import name ‘SummaryWriter’ from partially initialized module ‘torch.utils.tensorboard’ (most likely due to a circular import) (E:\ProgramData\Anaconda3\envs\pytorch38\lib\site-packages\torch\utils\tensorboard_
init
_.py)
导入错误:无法从部分初始化的模块“torch.utils.tensorboard”导入名称“SummaryWriter”(很可能是由于循环导入)(E:ProgramDataAnaconda3envspytorch38libsite-packagestorchutilstensorboard__init__.py)
原因分析:
报错的意思是,我循环调用了一个包;
原因是我把文件名,弄错了,弄成了跟python子包相同的名称了;
解决方法:
把文件名称改了就行。
参考链接:
方法借鉴,遇到了一样的问题
猜你喜欢
转载自
blog.csdn.net/weixin_42306148/article/details/127779329
【debug】通用bug集中修复: (most likely due to a circular import)
cannot import name ‘x‘ from partially initialized module ‘x‘ (most likely due to a circular import)
partially initialized module ‘numpy‘ has no attribute ‘array‘ (most likely due to a circular import)
partially initialized module ‘jieba‘ has no attribute ‘lcut‘ (most likely due to a circular import)
Python:类型标注解决循环引用问题most likely due to a circular import
AttributeError:partially initialized module ''has no attribute''(most likely dueto a circular import
ImportError: cannot import name ‘db‘ from partially initialized module ‘app‘ (most likely due to a c
ImportError: cannot import name ‘Flask‘ from partially initialized module ‘flask‘ (most likely due t
已解决AttributeError:partially initialized module ‘‘has no attribute‘‘(most likely dueto a circular imp
AttributeError: partially initialized module ‘vtk‘ has no attribute ‘vtkRenderer‘ (most likely due t
This is most likely due to a Variable name or other graph key that is missing from the checkpoint. P
caused by a circular import.
教育纪录片《Most likely to succeed》
pyppeteer 报 Execution context was destroyed, most likely because of a navigation
选择最可能的句子(Picking the most likely sentence)
Error:Your project path contains non-ASCII characters. This will most likely cause the build to fail
Kerberos权限不足错误:FATAL ipc.RpcClientImpl: SASL authentication failed. The most likely cause is missing
centos下chrome启动报错:Most likely you need to configure your SUID sandbox correctly
ERROR Packager can't listen on port 8081 Most likely another process is already using this port
GraphicsMagick报错:this most likely means the gm/convert binaries can't be found
Your project path contains non-ASCII characters. This will most likely cause the build to fail on...
ubunt 14.04 Could not find CMAKE_ROOT !!! CMake has most likely not been installed correctly. Modul
Unable to get file location. This most likely means that the file provider information is not set in
Gradle sync failed: The first result from the daemon was empty. Most likely the process died immedia
Error:(1, 0) Your project path contains non-ASCII characters. This will most likely cause the build
pyppeteer出现Session closed. Most likely the page has been closed.异常记录
【FLink】FLink Hash collision on user-specified ID “opt“. Most likely cause is a non-unique ID
已解决UserWarning: Animation was deleted without rendering anything. This is most likely not intended.
解决Cmake报错:Could not find CMAKE_ROOT !!!CMake has most likely not been installed correctly.
完美解决AttributeError:partially initialized module ‘‘has no attribute‘‘(most likely dueto a circula
今日推荐
《美国对全球网络空间安全与发展的威胁和破坏》报告发布
火速冲上 GitHub 热榜 —— 开源编程语言、框架哪有这么可爱?
北京人形机器人创新中心发布全球首个纯电驱拟人奔跑的全尺寸人形机器人“天工”
LFOSSA 源来如此公开课 | 掌握云原生未来:CNCF 认证全面攻略与备考秘籍
周排行
让自己的头脑极度开放
CentOS 6.5(x64) 和Redhat6.5操作系误删libc
高可用注册中心
【日记】12.28/【题解】AtCoder AGC041
XML(5)_XML 约束_DTD
Java集合Map(四)
树梅派安装桌面环境教程
pipenv 的 使用和安装
小程序白屏问题和内存研究
C语言简单选择排序
每日归档
更多
2024-05-02(0)
2024-05-01(4)
2024-04-30(1)
2024-04-29(40)
2024-04-28(0)
2024-04-27(56)
2024-04-26(39)
2024-04-25(22)
2024-04-24(36)
2024-04-23(26)