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.

No Module name 'sklearn'

See original GitHub issue

When I forked the example repository and followed the tutorial for running the workflow. I receive an error message in the workflow that:

Traceback (most recent call last):
  File "/home/runner/work/cml-example-base/cml-example-base/train.py", line 1, in <module>
    from sklearn.ensemble import RandomForestClassifier
ModuleNotFoundError: No module named 'sklearn'

Thank you in advance for checking my error. I tried to implement a CI system with CML on other repositories but I encounter the same error as aforementioned.

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
DavidGOrtegacommented, Dec 27, 2022

I opened the ticket https://github.com/iterative-test/cml-example-base/issues/3

Thanks for reporting!!

1reaction
hlin863commented, Dec 27, 2022

I’m currently using the tutorial from Youtube for building up the ML CI system.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ModuleNotFoundError: No module named 'sklearn'
One way to try solve the issue: you might clear your system of all other Python versions and their cached/temp files/system variables, and...
Read more >
Fix ModuleNotFoundError: No module named 'sklearn'
This error indicates that the scikit-learn (aka sklearn ) package was not installed, or even if it was installed for some reason it...
Read more >
ModuleNotFoundError: No module named 'sklearn' in Python
The Python "ModuleNotFoundError: No module named 'sklearn'" occurs when we forget to install the scikit-learn module before importing it or install it in...
Read more >
Modulenotfounderror no module named sklearn in Python
Fix the no module named sklearn error in Python · Save your program / notebook. Invoke terminal or the command prompt. · Package...
Read more >
ModuleNotFoundError: No module named sklearn, simple fix!
The error “ModuleNotFoundError: No module named sklearn" is a common error experienced by data scientists when developing in Python.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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