ubuntu 安裝tensorflow-gpu==1.8
阿新 • • 發佈:2018-12-25
先到Anaconda 官網下載 anaconda3 (5.2.0),
接著安裝sh anaconda3.sh
接著在命令列 conda install tensorflow-gpu==1.8
接著conda install keras-gpu
還有conda install opencv
最後 conda update h5py(為了消除那個tf.float的那個警告)
Package Plan
The following packages will be UPDATED:
h5py: 2.7.1-py36ha1f6525_2 defaults --> 2.8.0-py36ha1f6525_0 defaults
over!!!
opencv error
The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function cvShowImage.
解決辦法:
conda install -c menpo opencv3
一定要用 menpo,別的就出錯了。