AI Tools from Intel
Find answers to your toolkit installation, configuration, and get-started questions.
136 Discussions

Jupyter notebook : "pip install" not taking any effect resulting to ModuleNotFoundError

mboushaba
Beginner
1,176 Views

Hello,

I'm new here, and I'm trying to do this AI training "Welcome to the Magic of Words! - Text-to-Image with Stable Diffusion" (you find it in the attachment) which is available on training section. This training uses Jupyter notebook.

When I run the cell's code to install the requirements, using pip, I got this error :

ModuleNotFoundError: No module named 'intel_extension_for_pytorch'

or 

ModuleNotFoundError: No module named 'torch'

There is no error thrown during pip installation, and when rerunning the installation again I got this (which is normal, since it has been already installed)

Requirement already satisfied

 I noticed that, on the notebook, even if I install requirements with pip it's like that it's not taken in consideration, resulting to always throw

ModuleNotFoundError: No module named 'requirement_name'

 

Since I can't install these requirements, I'm stuck at the start of training

Any idea how to make this works ?


Thanks in advance

Regards 

0 Kudos
1 Solution
Zaili
Employee
1,109 Views

Hi Mohammed,

 

Your problem is not IPEX specific but a jupyter notebook env setting issue. I found the issue seems similar with a stackoverflow thread: https://stackoverflow.com/questions/58882055/python-doesnt-see-packages-with-jupyter-notebook?rq=3 . Would you try the solutions provided here and see if they work?

 

Regards,

Zaili

View solution in original post

2 Replies
Zaili
Employee
1,110 Views

Hi Mohammed,

 

Your problem is not IPEX specific but a jupyter notebook env setting issue. I found the issue seems similar with a stackoverflow thread: https://stackoverflow.com/questions/58882055/python-doesnt-see-packages-with-jupyter-notebook?rq=3 . Would you try the solutions provided here and see if they work?

 

Regards,

Zaili

mboushaba
Beginner
1,082 Views

Hi Zaili,

Thank you for your reply

 

And Yeah it worked using 

import sys
!{sys.executable} -m pip install your_package_name

 

Thanks for your help ^^

0 Kudos
Reply