简体   繁体   中英

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:

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:

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. You cannot install it with pip install .

You need to find the source of cnn_utils.py then download that to your computer, then upload it to Colab.

这是coursera课程中的cnn_utils.py

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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