[英]cnn_utils module missing from Google Colab
I'm trying to run a copy of a notebook from my Coursera class (which is in Jupyter) in Colab and getting an error:我正在尝试在 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'
i tried doing !pip install
but it yelled at me again:我尝试执行
!pip install
但它再次对我大喊大叫:
Could not find a version that satisfies the requirement cnn_utils (from versions: )
No matching distribution found for cnn_utils
anyone know how to fix it?谁知道怎么修它?
cnn_utils
here is just a personal library for the course, not a public module.这里的
cnn_utils
只是课程的个人库,而不是公共模块。 You cannot install it with pip install
.你不能用
pip install
安装它。
You need to find the source of cnn_utils.py
then download that to your computer, then upload it to Colab.您需要找到
cnn_utils.py
的来源,然后将其下载到您的计算机,然后将其上传到 Colab。
这是coursera课程中的cnn_utils.py
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.