# ModuleNotFoundError: No module named 'datasets'!

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmodulenotfounderror-no-module-named-datasets%2F46614%3E%5C
**Category:** Beginners\
**Created:** [July 12, 2023, 7:15pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmodulenotfounderror-no-module-named-datasets%2F46614 "2023-07-12T19:15:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohsengh97](https://avatars.discourse-cdn.com/v4/letter/m/919ad9/32.png) [@mohsengh97](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmohsengh97)%5C
**Post date:** [July 12, 2023, 7:15pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmodulenotfounderror-no-module-named-datasets%2F46614%2F1 "2023-07-12T19:15:39Z")

</div>

Hi all,  
I am using conda (version 22.11.1) on a Linux VM with this info:  
Operating System: Red Hat Enterprise Linux Server 7.9 (Maipo)  
CPE OS Name: cpe:/o:redhat:enterprise\_linux:7.9:GA:server  
Kernel: Linux 3.10.0-1160.36.2.el7.x86\_64  
Architecture: x86-64  
I have tried installing the datasets with pip, pip3, and conda forge, and it gets installed successfully. I tried it on different environments, with different Python versions above 3.6, but I still get this error after running the same code I ran successfully on a different Redhat VM that I have!

This is the error:  
from datasets import load\_dataset  
ModuleNotFoundError: No module named ‘datasets’

Can anybody help me with this?

---

<div class="post-metadata">

**Author:** ![kuchbhidedo](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/kuchbhidedo/32/39321_2.png) [@kuchbhidedo](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fkuchbhidedo)%5C
**Post date:** [January 17, 2025, 6:11am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmodulenotfounderror-no-module-named-datasets%2F46614%2F2 "2025-01-17T06:11:44Z")

</div>

Might be Too late to tell, but Restarting Vscode or any IDE solves the problem.
