Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 388 Bytes

File metadata and controls

29 lines (19 loc) · 388 Bytes

ModuleNotFoundError: No module named 'yaml'

Occurs when importing a module that is not installed.

Reproduce

import yaml

data = {"name": "john"}
print(data)

Error Message

ModuleNotFoundError: No module named 'yaml'

Fix

data = {"name": "john"}
print(data)

Reflection

Tried importing a module without checking if it was available.