Python Colab运行时保持不变”;“忙”;重新启动运行时后的状态

Python Colab运行时保持不变”;“忙”;重新启动运行时后的状态,python,tensorflow,google-colaboratory,Python,Tensorflow,Google Colaboratory,我的ipython笔记本中有使用tensorflow 1.0.1版本的遗留代码。 我有一个requirements.txt文件来安装依赖项。 所以我运行这个单元格-!在我的Colab笔记本中安装-r requirements.txt,以运行此遗留代码 requirements.txt具有以下依赖项: tensorflow gpu==1.0.1 nltk==3.2.5 matplotlib==2.0.2 scipy==0.19.1 scikit学习==0.19.0 jupyter==1.0.0

我的ipython笔记本中有使用tensorflow 1.0.1版本的遗留代码。 我有一个requirements.txt文件来安装依赖项。 所以我运行这个单元格-
!在我的Colab笔记本中安装-r requirements.txt
,以运行此遗留代码

requirements.txt具有以下依赖项:

  • tensorflow gpu==1.0.1
  • nltk==3.2.5
  • matplotlib==2.0.2
  • scipy==0.19.1
  • scikit学习==0.19.0
  • jupyter==1.0.0
在笔记本中运行上述单元后,我收到一条消息,要求重新启动运行时以设置TensorFlow 1.0.1的环境。 重启内核后,我总是让运行时处于“忙碌”状态

即使我试图终止会话以重新开始。这没有帮助,因为我也必须在新会话中重新启动内核


有谁能澄清一下,在内核重新启动后,我应该做些什么来避免“保持忙碌状态”?

尝试删除jupyter安装。很可能是安装了与Colab不兼容的dep,这会导致后端被楔入


在这种状态下,您可以使用runtime->Factory reset runtime菜单重置运行时。

删除jupyter依赖项使我重新启动内核并继续。(它没有保持“忙碌”状态):)