[英]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.