[GH-ISSUE #4] Package conflicts with nvidia-ml-py (pynvml.py) #6

Closed
opened 2026-05-05 03:21:22 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @reapoker on GitHub (Aug 7, 2021).
Original GitHub issue: https://github.com/XuehaiPan/nvitop/issues/4

Runtime Environment

  • Operating system and version: [e.g. Ubuntu 20.04 LTS / Windows 10 Build 19043.1110]
  • Terminal emulator and version: [e.g. GNOME Terminal 3.36.2 / Windows Terminal 1.8.1521.0]
  • Python version: [e.g. 3.5.6 / 3.9.6]
  • NVML version (driver version): [e.g. 460.84]
  • nvitop version or commit: [e.g. 0.3.5.6 / main@b669fa3]
  • python-ml-py version: [e.g. 11.450.51]
  • Locale: [e.g. C / C.UTF-8 / en_US.UTF-8]

Current Behavior

image

Expected Behavior

run as previews

Originally created by @reapoker on GitHub (Aug 7, 2021). Original GitHub issue: https://github.com/XuehaiPan/nvitop/issues/4 <!-- Thank you for contributing to nvitop by opening this issue. Please check through this list, so you can be as helpful as possible: 1. Was this issue already reported? Please do a quick search. 2. Maybe the problem is solved in the current master branch already? Simply clone nvitop's git repository and run ./nvitop.py to find out. 3. Provide all the relevant information, as outlined in this template. Feel free to remove any sections you don't need. --> #### Runtime Environment - Operating system and version: [e.g. Ubuntu 20.04 LTS / Windows 10 Build 19043.1110] - Terminal emulator and version: [e.g. GNOME Terminal 3.36.2 / Windows Terminal 1.8.1521.0] - Python version: [e.g. `3.5.6` / `3.9.6`] - NVML version (driver version): [e.g. `460.84`] - `nvitop` version or commit: [e.g. `0.3.5.6` / `main@b669fa3`] - `python-ml-py` version: [e.g. `11.450.51`] - Locale: [e.g. `C` / `C.UTF-8` / `en_US.UTF-8`] #### Current Behavior ![image](https://user-images.githubusercontent.com/32959296/128589491-e1960b74-593d-4fcd-aae3-d96804ee1e19.png) #### Expected Behavior run as previews
gitea-mirror 2026-05-05 03:21:22 -06:00
Author
Owner

@XuehaiPan commented on GitHub (Aug 7, 2021):

Do you have installed other implementations of NVML Python bindings (nvidia-ml-py3, pynvml, etc.) in your virtual environment? Have a quick check with:

pip3 freeze

You can fix this with the following command:

pip3 install --force-reinstall nvidia-ml-py==11.450.51
<!-- gh-comment-id:894610460 --> @XuehaiPan commented on GitHub (Aug 7, 2021): Do you have installed other implementations of NVML Python bindings (`nvidia-ml-py3`, `pynvml`, etc.) in your virtual environment? Have a quick check with: ``` pip3 freeze ``` You can fix this with the following command: ``` pip3 install --force-reinstall nvidia-ml-py==11.450.51 ```
Author
Owner

@reapoker commented on GitHub (Aug 7, 2021):

image
image
nvidia-ml-py3, pynvml have installed.
But it still reports the error.
error

<!-- gh-comment-id:894658412 --> @reapoker commented on GitHub (Aug 7, 2021): ![image](https://user-images.githubusercontent.com/32959296/128602413-c08e2065-3237-4842-8cbd-6c8630eee75b.png) ![image](https://user-images.githubusercontent.com/32959296/128602426-5c8f168f-f764-4677-b154-523d3877bd39.png) nvidia-ml-py3, pynvml have installed. But it still reports the error. ![error](https://user-images.githubusercontent.com/32959296/128589491-e1960b74-593d-4fcd-aae3-d96804ee1e19.png)
Author
Owner

@XuehaiPan commented on GitHub (Aug 7, 2021):

nvidia-ml-py3, pynvml have installed.

nvidia-ml-py is conflict with nvidia-ml-py3 and pynvml. All these three packages will install module pynvml.py. You should uninstall the others and reinstall nvidia-ml-py:

pip3 uninstall nvidia-ml-py3 pynvml
pip3 install --force-reinstall nvidia-ml-py==11.450.51

Or you can create a new virtual environment and install nvitop in that.

<!-- gh-comment-id:894659795 --> @XuehaiPan commented on GitHub (Aug 7, 2021): > nvidia-ml-py3, pynvml have installed. `nvidia-ml-py` is conflict with `nvidia-ml-py3` and `pynvml`. All these three packages will install module `pynvml.py`. You should uninstall the others and reinstall `nvidia-ml-py`: ```bash pip3 uninstall nvidia-ml-py3 pynvml pip3 install --force-reinstall nvidia-ml-py==11.450.51 ``` Or you can create a new virtual environment and install `nvitop` in that.
Author
Owner

@reapoker commented on GitHub (Aug 7, 2021):

thx!
image

<!-- gh-comment-id:894661229 --> @reapoker commented on GitHub (Aug 7, 2021): thx! ![image](https://user-images.githubusercontent.com/32959296/128603328-68586cf1-bb9a-4453-941d-44598fe42bd9.png)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/nvitop#6
No description provided.