AttributeError:模块“ IPython.core”没有属性“ shadowns”

我正在运行这些行

import dill
dill.load_session("session2.pkl")

,并收到错误AttributeError: module 'IPython.core' has no attribute 'shadowns'。 我已将此会话保存在Google colab笔记本上。如何摆脱错误?

bjh20091201 回答:AttributeError:模块“ IPython.core”没有属性“ shadowns”

我使用了简单的解决方法:

import IPython
IPython.core.shadowns = 1

对于一些缺少的额外包,例如 googlegoogle.colab,我使用了

%%bash
mkdir google/colab
touch google/colab/__init__.py
本文链接:https://www.f2er.com/3071232.html

大家都在问