Raspberry Pi學習筆記(十二):安裝TensorFlow和Keras

安裝Python對應模組

sudo apt-get update
sudo apt-get install python-pip python-dev

安裝TensorFlow

sudo apt install libatlas-base-devsudo pip3 install mocksudo apt-get install cython   #需安裝cython才能裝tensorflow,否則會出錯sudo pip3 install tensorflow

安裝Keras

sudo pip3 install keras

測試安裝是否成功

python3 #進入python3環境
import tensorflow
import keras
#查看是否出現錯誤,若無,則表示安裝成功

Written by

Machine Learning / Deep Learning / Python / Flutter cakeresume.com/yanwei-liu

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store