nicolargo / nvidia-ml-py3

Python 3 Bindings for the NVIDIA Management Library
133 stars 58 forks source link

Latest version on Pypi #3

Open torzdf opened 5 years ago

torzdf commented 5 years ago

First up, thanks for this extremely useful Lib.

I was wondering if it would be possible to push the latest version with the check into System32 for Windows users to PyPi?

It seems that Windows is increasingly installing Nvidia drivers this way, and it would be extremely useful to be able to pull this functionality in with Pip.

Many thanks, and keep up the good work!

kapsh commented 5 years ago

In the meantime you can do something like

pip install git+https://github.com/nicolargo/nvidia-ml-py3
torzdf commented 5 years ago

Yeah, this is what we have. The main problem is that the version number in this repo is the same as in PyPi, so it won't automatically update to this version of nvidia-ml-py3 if it already exists on their system (this is for a requirements.txt install). I have had to fork this repo to update the version number.

It also means it also re-downloads the git version every time people try to update to check the version number.

stas00 commented 4 years ago

In the meantime you can do pip install git+https://github.com/nicolargo/nvidia-ml-py3

This doesn't work well with other libraries that depend on this library.

iam-Shashank commented 4 years ago

Would be quite helpful if the pypi version was updated.

kapsh commented 4 years ago

I'd suggest to ping or email repository owner directly for that. Not everyone has github comment notifications enabled.

stas00 commented 4 years ago

do you have his email address? github doesn't expose repo owner's email address.

patrikhuber commented 4 years ago

It looks like NVIDIA has also updated their bindings on PyPi nvidia-ml-py to version 10.418.84 in 2019 https://pypi.org/project/nvidia-ml-py/#history. pip install nvidia-ml-py will still give a weird nvidia-ml-py-375.53.tar.gz version that I can nowhere find on PyPi but pip install nvidia-ml-py==10.418.84 does the trick for me. That version looks like it's working with Python 3 too. Does anyone know the differences between the two, what are you all using?

Edit: This is highly related: https://github.com/gpuopenanalytics/pynvml/issues/2.

wookayin commented 3 years ago

As of 2021, there is no need to use this library or nvidia-ml-py3 package -- PLEASE DON'T USE IT!

NVIDIA is maintaining an official python binding (which also is compatible with python3): https://pypi.org/project/nvidia-ml-py/

FYI as of today the latest version is 11.460.79 which is released on May 2021, including recent changes to the NVML API.

Regarding Patrik's comment, there is a bit hiccup in package versions, see also: https://forums.developer.nvidia.com/t/mistake-with-nvidia-ml-py-on-pypi/112942 for more details. NVIDIA will remove the 375.xx package soon. For now, you can do:

pip install nvidia-ml-py!=375.*

@nicolargo Could you please consider informing this information in the repository?