更改Ubuntu默认python版本的方法
参考文章:https://www.cnblogs.com/yifugui/p/8649864.html
由于已经建立目录,所以直接输入以下指令进行切换就可
update-alternatives --config python
python2用pip安装包的指令
python2 -m pip install easydict
import tensorflow时报错:ImportError: libcudart.so.10.0: cannot open shared object file
sudo ldconfig /usr/local/cuda-10.0/lib64
运行上述命令时依然报错:/sbin/ldconfig.real: /usr/local/cuda-10.0/lib64/libcudnn.so.7 is not a symbolic link
sudo ln -sf /usr/local/cuda-10.0/lib64/libcudnn.so.7.4.2 /usr/local/cuda-10.0/lib64/libcudnn.so.7