[ AI ] 在 Anaconda 虛擬環境下安裝 Tensorflow 與 Keras


 為何要建立虛擬環境來安裝Tensorflow等套件?
為了配合 Tensorflow 所支援的 Python 版本,我們可以利用 Anaconda 虛擬環境來產生全新的 Python 環境,以避免 Anaconda 裡新版的 Python 版本可能與 Tensorflow 會的相容性問題。


step1:建立虛擬環境用的資料夾
           md \tensorflow   :建立資料夾
           cd \tensorflow  :進到資料夾
*上面的tensorflow可置換你想要的資料夾名稱
*\指的是要再跟目錄建立資料夾 。不用\就是在下層建立。

step2:建立某個python版本的虛擬環境
conda create --name tensorflow python=3.5

step3:啟用虛擬環境
activate tensorflow

step4:安裝tensoflow
conda install tensorflow

step5:安裝keras
conda install -c conda-forge keras

step6:安裝jupyter
conda install jupyter notebook

留言

這個網誌中的熱門文章

嘗試卸載資料庫時,發生資料庫正在使用的而無法卸載的可能解決方案

ASP.NET常用的RegularExpressionValidator驗證

PMP常用的英文單字