目录
# STEP_1: pip -V 镜像
```
sudo gedit ~/.pip/pip.conf
```
```
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=mirrors.aliyun.com
```
```
windows下,直接在user目录中创建一个pip目录,再新建文件pip.ini。(例如:C:\Users\WQP\pip\pip.ini)内容同上
```
# STEP_2: apt-get 镜像
```
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
```
```
sudo gedit /etc/apt/sources.list
```
```
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
```
```
sudo apt-get update
```
# STEP_3: nvidia-smi 无法显示
https://blog.csdn.net/hangzuxi8764/article/details/86572093
```
nvcc -V
可是驱动已经安装
step1:sudo apt-get install dkms
step2: sudo dkms install -m nvidia -v 410.79xxx
```
# 记得查看具体的路径src/nvidia的版本号码