首页 > 解决方案 > 尽管安装了帮助程序,但导入帮助程序库时出错

问题描述

我正在使用 colab 并且已经 !pip install helper ,但我面临错误 AttributeError: module 'helper' has no attribute 'imshow' 并且 AttributeError: module 'helper' has no attribute 'view_classify' helper 有什么问题?

标签: python-3.xgoogle-colaboratory

解决方案


要解决这些问题,请在笔记本最顶部的单元格中运行以下代码以安装帮助文件;

!wget -c https://raw.githubusercontent.com/udacity/deep-learning-v2-pytorch/master/intro-to-pytorch/helper.py

然后重新启动整个运行时以便笔记本加载文件


推荐阅读