Win10+GTX1050+cuda8.0+cuDNN5.1+Tensorflow-gpu1.0.1+Keras+xgboost环境搭建

xiaoxiao2021-02-28  36

原文:Win10+GTX1050ti+cuda8.0+cuDNN5.1+Tensorflow-gpu1.2+Keras+Theano环境搭建

地址如下:https://www.jianshu.com/p/0c57e8e951af

排坑1:安装VS2015社区版后生成解决方案会出现无法打开包括文件:“d3dx9.h”等文件

解决方案:下载DXSDK_Jun10.exe并安装(下载地址:DXSDK_Jun10),安装后可能会出现下图这种情况,错误码S1023

错误原因:

计算机上有安装过更新版的Microsoft Visual C++ 2010 Redistributable,打开“控制面板”的“程序和功能”,果然计算机里之前有安装“Microsoft Visual C++ 2010 x86 Redistributable - 1010.0.40219”,而DXSDK_Jun安装的是“Microsoft Visual C++ 2010 x86 Redistributable - 1010.0.30319”,版本低于本机已安装的版本,所以安装出现s1023错误。

卸载更高的版本Microsoft Visual C++ 2010 x86 Redistributable - 1010.0.40219”,再重新安装即可。(只卸载Microsoft Visual C++ 2010 的x86和x64)

排坑二:安装tensorflow-gpu的版本

cuda8.0+cuDNN5.1对应的tensorflow-gpu版本为1.0.1

使用清华镜像安装较为快捷,指令如下:

pip install https://mirrors.tuna.tsinghua.edu.cn/tensorflow/windows/gpu/tensorflow_gpu-1.0.1-cp35-cp35m-win_amd64.whl

若需要更新pip,更新即可

排坑三:xgboost安装

xgboost安装

转载请注明原文地址: https://www.6miu.com/read-2400260.html

最新回复(0)