1.查看gpu使用情况
nvidia-smi
2.查看python安装路径
法1:命令行查看所有python的安装位置
whereis python
法2: 命令行查看当前环境下python的安装位置
which python
法3:用python查看当前环境下python的安装路径
import sys
path = sys.executable
print(path)
3.List item
1.查看gpu使用情况
nvidia-smi
2.查看python安装路径
法1:命令行查看所有python的安装位置
whereis python
法2: 命令行查看当前环境下python的安装位置
which python
法3:用python查看当前环境下python的安装路径
import sys
path = sys.executable
print(path)
3.List item