sudo apt update
sudo apt install python3-dev python3-pip
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple/ tensorflow-gpu
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple/ torch torchvision
若tensorflow出现报错:ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory
在正确安装cuda和cudnn的情况下,执行一下命令即可
sudo ldconfig /usr/local/cuda-9.0/lib64
本文介绍如何在Linux环境下使用sudo apt更新包列表并安装Python3开发环境,通过清华源pip安装TensorFlow GPU版与PyTorch及其依赖库。针对TensorFlow可能出现的libcublas.so.9.0共享对象文件找不到的问题,提供了修正方案。
1890

被折叠的 条评论
为什么被折叠?



