简体   繁体   English

ModuleNotFoundError:没有名为“spyder.utils.iofuncs”的模块

[英]ModuleNotFoundError: No module named 'spyder.utils.iofuncs'

I want to load.spydata files with load_dictionary.我想用 load_dictionary 加载.spydata 文件。 However for some reason it can't find the module.但是由于某种原因,它找不到该模块。 I thought this was something already in Spyder?我以为这已经在 Spyder 中了? I am running spyder 3.3.1 and I don't want to update it for compatibility reasons.我正在运行 spyder 3.3.1,出于兼容性原因我不想更新它。

from spyder.utils.iofuncs import load_dictionary
ModuleNotFoundError: No module named 'spyder.utils.iofuncs'

I had the same problem.我有同样的问题。 It seems that load_dictionary and save_dictionary was moved to the the module spyder_kernels, so似乎 load_dictionary 和 save_dictionary 被移到了模块 spyder_kernels,所以

from spyder_kernels.utils.iofuncs import load_dictionary

must be used instead, see also https://github.com/spyder-ide/spyder-kernels/blob/master/spyder_kernels/utils/iofuncs.py .必须改为使用,另见https://github.com/spyder-ide/spyder-kernels/blob/master/spyder_kernels/utils/iofuncs.py

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM