python - 导入库实用程序
问题描述
我正在研究图像分类并为此目的使用 Google colab。但是当我想导入以下模块时,它会抛出一个错误。
from utils import show_test_cases, test_case_checker, perform_computation
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-9-ff42356cc1b5> in <module>()
----> 1 from utils import show_test_cases, test_case_checker, perform_computation
ImportError: cannot import name 'show_test_cases'
---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------
解决方案
推荐阅读
- javascript - 如何在 Threejs 中对多维数据集执行 If 循环以在多维数据集上创建悬停效果以增加其规模
- filter - Selmer:如何在自定义标签中应用过滤器?
- python - 在 Google Colab 上找不到 Ipykernel_launcher 文件,但仍然抛出错误
- sql-server - 使用记录集而不阻塞资源
- java - 为什么在 10 个 Java 线程中增加一个数字不会导致值 10?
- flutter - 状态设置时可见性小部件不隐藏
- python - psycopg2.errors.DuplicateTable:关系“uac_c2_py”已经存在
- python - 在 SQL Server 机器学习服务中读取我的 Python GET 请求的结果
- javascript - 如何解决地图链中的承诺制定功能?
- r - Rstudio:pi^e vs e^pi