2019年9月29日 星期日

機器學習環境建置

一、一般電腦建置(通常有gpu)



安裝anaconda:https://repo.continuum.io/archive/



二、如果電腦太爛只有cpu,就不用安裝cuda、cudnn


依序安裝https://www.itread01.com/content/1542619084.html

import tensorflow 之後

出現wrapt問題可以參考https://github.com/tensorflow/tensorflow/issues/30191
移除wrapt,指令conda remove wrapt,之後再接著安裝tf

出現ImportError: DLL load failed with error
可能是win_amd64.whl檔案缺失
可以參考https://stackoverflow.com/questions/52092810/tensorflow-error-dll-load-failed-the-specified-procedure-could-not-be-found
下載檔案至正確位置安裝,接著再安裝tf


pip test 指令pip -V
tf test 指令python-->import tensorflow as tf-->tf.__version__