0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ModuleNotFoundError python(41) error(138)

Last updated at Posted at 2024-10-10
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-1599bc6e80ec> in <cell line: 4>()
      2 import codecs
      3 from pprint import pprint
----> 4 from datasets import load_dataset
      5 
      6 # サンプルデータが保存されているパス

ModuleNotFoundError: No module named 'datasets'

---------------------------------------------------------------------------
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.
---------------------------------------------------------------------------


---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-3-df8f1ea99b0d> in <cell line: 4>()
      2 
      3 import torch
----> 4 from datasets import load_dataset
      5 from torch.utils.data import Dataset
      6 from tqdm import tqdm

ModuleNotFoundError: No module named 'datasets'

---------------------------------------------------------------------------
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.
---------------------------------------------------------------------------




---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-4-8d1b9ad2b097> in <cell line: 2>()
      1 # データセットペア取得
----> 2 pairs = create_comparison_dataset_ls(data_path)
      3 pprint(pairs[0])

NameError: name 'create_comparison_dataset_ls' is not defined


0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?