我已经看过一些关于这个问题的帖子(1,2),但没有一个帖子对我来说很重要。我正在尝试将nvidia-ml-py版本7.352.0安装到我的Anaconda Python 2.7环境中。
基于Link2上面我看到的唯一合适的方法只是python setup.py install,setup.py的输出如下
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
copying pynvml.py -> build/lib.linux-x86_64-2.7
copying nvidia_smi.py -> build/lib.linux-x86_64-2.7
running install_lib
copying build/lib.linux-x86_64-2.7/nvidia_smi.py -> /usr/local/lib/python2.7/dist-packages
copying build/lib.linux-x86_64-2.7/pynvml.py -> /usr/local/lib/python2.7/dist-packages
byte-compiling /usr/local/lib/python2.7/dist-packages/nvidia_smi.py to nvidia_smi.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/pynvml.py to pynvml.pyc
running install_egg_info
Writing /usr/local/lib/python2.7/dist-packages/nvidia_ml_py-7.352.0.egg-info
据我所知&#x