python-3.x - 尽管安装了帮助程序,但导入帮助程序库时出错
问题描述
我正在使用 colab 并且已经 !pip install helper ,但我面临错误 AttributeError: module 'helper' has no attribute 'imshow' 并且 AttributeError: module 'helper' has no attribute 'view_classify' helper 有什么问题?
解决方案
要解决这些问题,请在笔记本最顶部的单元格中运行以下代码以安装帮助文件;
!wget -c https://raw.githubusercontent.com/udacity/deep-learning-v2-pytorch/master/intro-to-pytorch/helper.py
然后重新启动整个运行时以便笔记本加载文件
推荐阅读
- java - 如何使用 java8 时间 API 在一个月的两个特定日期之间获取所有周末?
- bash - autorep 命令(属于 autosys)未在 crontab 中执行。为什么?
- javascript - 如何实现两组代码?
- tensorflow - 用于不支持 AVX 指令的处理器的 TensorFlow 预构建二进制文件
- python - 完全相同的 MYSQL 查询,一致地返回两个不同的结果
- kubernetes - Kubernetes,VolumeMounts 一个文件,而不是一个目录
- ruby-on-rails - 从 url 中删除控制器操作名称
- xamarin - Xamarin.forms:WebView 缩放不起作用
- javascript - 下载 HTML 5 属性在 IE 11 中无法正常工作
- java - 无法在 MacOSX 上编译 Arduino 草图