ubuntu 安装tensorflow-gpu==1.8

先到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,别的就出错了。

猜你喜欢

转载自blog.csdn.net/confuciust/article/details/80801100