libcublas.so.10.0错误
来源:1-9 Google_cloud_gpu_tensorflow配置
慕村0488246
2019-11-29
老师,
下面是我的报错: ImportError: libcublas.so.10.0: cannot open shared object file: No such file or directory
请问老师如何配置环境变量啊?
搞不出来感觉很挫…
2回答
-
慕慕8288485
2020-10-12
我也遇到这个问题,自己想办法解决了。
首先是install.sh中修改cuda10.1为10.0(deb包名也要改),然后tensorflow安装2.0.0即可(不要2.1.0以上)
# Add NVIDIA package repositories
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-repo-ubuntu1804_10.0.130-1_amd64.deb
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
sudo dpkg -i cuda-repo-ubuntu1804_10.0.130-1_amd64.deb
sudo apt-get update
wget http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/nvidia-machine-learning-repo-ubuntu1804_1.0.0-1_amd64.deb
sudo apt install ./nvidia-machine-learning-repo-ubuntu1804_1.0.0-1_amd64.deb
sudo apt-get update
# Install NVIDIA driver
sudo apt-get install --no-install-recommends nvidia-driver-450
# Reboot. Check that GPUs are visible using the command: nvidia-smi
# Install development and runtime libraries (~4GB)
sudo apt-get install --no-install-recommends \
cuda-10-0 \
libcudnn7=7.6.5.32-1+cuda10.0 \
libcudnn7-dev=7.6.5.32-1+cuda10.0
# Install TensorRT. Requires that libcudnn7 is installed above.
sudo apt-get install -y --no-install-recommends libnvinfer6=6.0.1-1+cuda10.0 \
libnvinfer-dev=6.0.1-1+cuda10.0 \
libnvinfer-plugin6=6.0.1-1+cuda10.0
00 -
正十七
2019-12-15
版本对应大问题,一遇环境误一天哇。
我配置tensorflow2.0正式版的时候也遇到了这个问题,你可以去看我git的readme文件中的描述。
至于环境变量,在那个描述中引用了一个csdn的blog里有,可以参考:https://blog.csdn.net/u012388993/article/details/102573117
00
相似问题