Code Monkey home page Code Monkey logo

Comments (3)

wookayin avatar wookayin commented on June 8, 2024 1

It's fine and recommended to use the latest version of pynvml (as the python modulename) or nvidia-ml-py (as the PyPI package name to install), assuming NVIDIA does not break the backward compatibility. In general, any latest nvidia-ml-py with the same driver version prefix (e.g. 535.129.03 matches 12.535.133) should work.

To emphasize again, people should:

Caution

NEVER use pip install pynvml, nor have pynvml as a dependency to your python project.
Instead: pip install nvidia-ml-py is correct.

IMO the pynvml package should be removed from PyPI. I will add this to README, thanks again for reporting.

from gpustat.

wookayin avatar wookayin commented on June 8, 2024

Thanks for reporting! I think this is pynvml installation problem. Do you happen to have the wrong pynvml as well as nvidia-ml-py (which conflicts on providing package)? Please confirm by:

pip list | grep nvml

ls -al $(python -c 'import pynvml; print(pynvml.__file__)')`

Try the following if this can fix the issue:

pip uninstall nvidia-ml-py3 pynvml
pip install --force-reinstall --ignore-installed 'nvidia-ml-py'

Maybe I should revert #153 because this is so common error users might encounter unawarely...

from gpustat.

bryant1410 avatar bryant1410 commented on June 8, 2024

Yes, that fixes the issue. pynvml 11.4.1 was installed. Thanks, Jongwook!!

So what's the general recommendation? Have a particular version of pynvml, or to uninstall it?

Feel free to close this issue if you want.

from gpustat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.