為 Ubuntu 18.04 LST 安裝 Tensorflow 1.12 with GPU support

執行完之前介紹的 Post not found: Install-Nvidia-GPU-driver-on-Ubuntu-18-04-LTSPost not found: Install-Python-3-6-on-Ubuntu-18-04-LST 後,就可以為我們的作業系統安裝能透過 GPU 運算的 TensorFlow 啦。

當前的 TensorFlow 版本為 1.12,只支援 CUDA 9.0,當前 CUDA 9.0 的 cuDNN 版本為 7.4.2。

安裝 CUDA

繼續閱讀

為 Ubuntu 18.04 LST 安裝 Python 3.6

原則上,Ubuntu 18.04.1 LTS 已經內建 Python 3 了,保險起見先檢查一下:

1
2
3
sudo apt update
sudo apt upgrade
python3 -v

此時的 Python 的版本應有 3.6 以上,我的版本為 3.6.7。

安裝 pip 3

繼續閱讀