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

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

Originally created by @Neronjust2017 on GitHub (Jul 7, 2021).
Original GitHub issue: https://github.com/XuehaiPan/nvitop/issues/1

hi,老哥,我安装好之后,输入 nvitop 会出现这个错误:

ERROR: Some FunctionNotFound errors occurred while calling:
    nvmlQuery('nvmlDeviceGetGraphicsRunningProcesses', *args, **kwargs)
    nvmlQuery('nvmlDeviceGetComputeRunningProcesses', *args, **kwargs)
Please verify whether the nvidia-ml-py package is compatible with your NVIDIA driver version.
You can check the release history of nvidia-ml-py at https://pypi.org/project/nvidia-ml-py/#history,
and install the compatible version manually.

但是,我安装其他版本的 nvidia-ml-py,会出现:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
nvitop 0.3.5.4 requires nvidia-ml-py==11.450.51, but you have nvidia-ml-py 7.352.0 which is incompatible.

看起来 nvitop 需要 nvidia-ml-py==11.450.51,但是我的显卡驱动又和 nvidia-ml-py 版本不兼容,有解决办法吗?

Originally created by @Neronjust2017 on GitHub (Jul 7, 2021). Original GitHub issue: https://github.com/XuehaiPan/nvitop/issues/1 hi,老哥,我安装好之后,输入 `nvitop` 会出现这个错误: ``` ERROR: Some FunctionNotFound errors occurred while calling: nvmlQuery('nvmlDeviceGetGraphicsRunningProcesses', *args, **kwargs) nvmlQuery('nvmlDeviceGetComputeRunningProcesses', *args, **kwargs) Please verify whether the nvidia-ml-py package is compatible with your NVIDIA driver version. You can check the release history of nvidia-ml-py at https://pypi.org/project/nvidia-ml-py/#history, and install the compatible version manually. ``` 但是,我安装其他版本的 `nvidia-ml-py`,会出现: ``` ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. nvitop 0.3.5.4 requires nvidia-ml-py==11.450.51, but you have nvidia-ml-py 7.352.0 which is incompatible. ``` 看起来 `nvitop` 需要 `nvidia-ml-py==11.450.51`,但是我的显卡驱动又和 `nvidia-ml-py` 版本不兼容,有解决办法吗?
gitea-mirror 2026-05-05 03:21:14 -06:00
Author
Owner

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

感谢反馈!能给一下你的操作系统版本和驱动版本吗?第二个 pip 安装其他版本的 nvidia-ml-py 的 warning 直接忽略就好了。

由于 nvidia-ml-pypy3nvmlnvidia-ml-py3 这三个包都会安装 pynvml.py 这个文件,能确认一下你是否安装了其他两个包吗?

pip3 freeze

后面两个包可能是安装了其他的库作为依赖安装的(比如 glances / gpustat),然后把 pynvml.py 给修改了。

<!-- gh-comment-id:875321039 --> @XuehaiPan commented on GitHub (Jul 7, 2021): 感谢反馈!能给一下你的操作系统版本和驱动版本吗?第二个 `pip` 安装其他版本的 `nvidia-ml-py` 的 warning 直接忽略就好了。 由于 `nvidia-ml-py`、`py3nvml`、`nvidia-ml-py3` 这三个包都会安装 `pynvml.py` 这个文件,能确认一下你是否安装了其他两个包吗? ```bash pip3 freeze ``` 后面两个包可能是安装了其他的库作为依赖安装的(比如 `glances` / `gpustat`),然后把 `pynvml.py` 给修改了。
Author
Owner

@Neronjust2017 commented on GitHub (Jul 7, 2021):

  • OS: Red Hat Enterprise Linux Server release 7.9 (Maipo)
  • GPU model and memory: Tesla P100-PCIE 16GB
  • GPU diver version: 440.33.01

其他两个包都没有安装,但我发现安装了 pynvml==11,我 uninstall pynvml 之后再重新安装 nvitop 就没问题了。

<!-- gh-comment-id:875326510 --> @Neronjust2017 commented on GitHub (Jul 7, 2021): - OS: Red Hat Enterprise Linux Server release 7.9 (Maipo) - GPU model and memory: Tesla P100-PCIE 16GB - GPU diver version: 440.33.01 其他两个包都没有安装,但我发现安装了 `pynvml==11`,我 uninstall `pynvml` 之后再重新安装 `nvitop` 就没问题了。
Author
Owner

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

我 uninstall pynvml 之后再重新安装 nvitop 就没问题了。

好的!如果和其他库冲突,可以用 virtualenv 之类的做个隔离。

<!-- gh-comment-id:875331105 --> @XuehaiPan commented on GitHub (Jul 7, 2021): > 我 uninstall `pynvml` 之后再重新安装 `nvitop` 就没问题了。 好的!如果和其他库冲突,可以用 `virtualenv` 之类的做个隔离。
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#1
No description provided.