I installed “pip install nvidia-ml-py” on python version 3.10.11 and 3.12.0
And I am trying to import as in notebook file in VS Code which uses 3.10.11 ikernel:
from pynvml import *
But above statement throws error:
ModuleNotFoundError Traceback (most recent call last)
Cell In[2], line 1
1 from pynvml import *
3 def print_gpu_utilization():
4 nvmlInit()
ModuleNotFoundError: No module named ‘pynvml’
I have python versions 3.10.11 and 3.12.0 the version 3.12.0 is installed in …user.pyenv…. and version 3.10.11 is installed in …userAppData…..
For 3.12.0 ikernel it is recognizing but not for 3.10.11.
Everything is installed the same way for both the versions. I check the packages under “3..Libsite-packages” the package present in both.
I tried installing from VS Code notebook file and also from command prompt for both the versions. Expecting that notebook ikernel “pip install” might have issue, but none worked.