question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ModuleNotFoundError: No module named 'yaml'

See original GitHub issue

Hi,

I have updated to the newest version 5.1 but yaml module is not available:

yaml version: 5.1 python version: Python 3.7.1 OS version: macOS Sierra 10.13.6

Any idea? Thanks!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:21 (3 by maintainers)

github_iconTop GitHub Comments

17reactions
nitzmahonecommented, Sep 4, 2019

This is a common issue with Macs that has nothing to do with pyyaml- need to read up on system Python vs user Python and make sure you’re using the right tools for the right Python version.

10reactions
mefitzgeraldcommented, Sep 2, 2019

I had the same issue, pyyaml showing as installed but throwing the “no module” error. This fix worked for me 😃
sudo easy_install pip sudo python -m pip install pyyaml

Read more comments on GitHub >

github_iconTop Results From Across the Web

ImportError: No module named 'yaml' - python - Stack Overflow
But, while usinf python3 or any other version CLI and executing import yaml -- I am getting ImportError: No module names 'yaml'.
Read more >
ModuleNotFoundError: No module named 'yaml' in Python
The Python "ModuleNotFoundError: No module named 'yaml'" occurs when we forget to install the pyyaml module before importing it or install ...
Read more >
Fix ModuleNotFoundError (No Module Named YAML) Python ...
Fix ModuleNotFoundError ( No Module Named YAML ) Python Import Error (If Installed / If Exists).
Read more >
How to solve ModuleNotFoundError: No module named 'yaml'
How to solve ModuleNotFoundError: No module named 'yaml' · Solution 1: Install YAML packages · Solution 2: Ensure you use Python <= 3...
Read more >
Modulenotfounderror: No module named 'yaml' ( Solved )
The root cause of the no module named 'yaml' error is not proper installation of the python yaml package. For creating and using...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found