繁体   English   中英

Google Colab 中缺少 cnn_utils 模块

[英]cnn_utils module missing from Google Colab

我正在尝试在 Colab 中运行我的 Coursera 课程(在 Jupyter 中)中的笔记本副本,但出现错误:

ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-6-1ee14f68a167> in <module>()
      8 import tensorflow as tf
      9 from tensorflow.python.framework import ops
---> 10 from cnn_utils import *
     11 
     12 get_ipython().magic('matplotlib inline')

ModuleNotFoundError: No module named 'cnn_utils'

我尝试执行!pip install但它再次对我大喊大叫:

Could not find a version that satisfies the requirement cnn_utils (from versions: )
No matching distribution found for cnn_utils

谁知道怎么修它?

这里的cnn_utils只是课程的个人库,而不是公共模块。 你不能用pip install安装它。

您需要找到cnn_utils.py的来源,然后将其下载到您的计算机,然后将其上传到 Colab。

这是coursera课程中的cnn_utils.py

暂无
暂无

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

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