简体   繁体   English

Google Colab 中缺少 cnn_utils 模块

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

相关问题 Google Colab 中没有名为“utils.utils”的模块 - No module named 'utils.utils' in Google Colab google colab 中的 root 中缺少 datalab 文件夹 - datalab folder is missing from root in google colab 在 google colab 中使用 MS nlp_recipes 时没有名为“utils_nlp”的模块 - No module named 'utils_nlp' when using MS nlp_recipes in google colab 没有名为…的模块…尝试从google Colab中的笔记本导入自定义python模块 - no module named … try to importcustom python module from a notebook in google Colab 不知道为什么在谷歌 colab 的 CNN 上出现错误 - Not sure why getting error on CNN in google colab 从谷歌驱动器导入谷歌 Colab 中的模块 - python - import module in Google Colab from google drive - python Google Colab 中的日志模块问题 - Problem with Logging Module in Google Colab 无法在 google colab notebook 中使用来自 googlesearch 模块的搜索方法 - Unable to use search method from googlesearch module in google colab notebook 导入错误:在 Colab google 中没有名为 ... 的模块 - ImportError: No module named ... in Colab google Session 在时间分布式 CNN 的第一个纪元开始时在 Google Colab 中崩溃 model - Session Crashed in Google Colab at the begining of first epoch in TimeDistributed CNN model
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM