nvidia-smi 失败:
$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
Run Code Online (Sandbox Code Playgroud)
这台机器上似乎事先安装了 nvidia [尝试?]。我该如何清理这个?
$ sudo ubuntu-drivers autoinstall
Run Code Online (Sandbox Code Playgroud)
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved …
Run Code Online (Sandbox Code Playgroud) 我已经安装了python3.8
,但没有找到有关如何pip3
在 上与其交谈的参考ubuntu
。我macos
已经明确安装了pip3.8
,这对于正确排列所有软件包至关重要。
pip3
根据众多建议安装如下:
sudo apt-get install python3-pip
Run Code Online (Sandbox Code Playgroud)
但它指向的是python3.6
:
$ pip3 -V
pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)
Run Code Online (Sandbox Code Playgroud)
请不要提示anaconda
或者venv
:有原因我们都是直接使用安装的python3.8
。