在Linux Ubuntu 安裝 Tensorflow 與Keras


5.1 安裝Anaconda
Step2. 下載Anaconda3-4.2.0-Linux-x86_64.sh
wget https://repo.continuum.io/archive/Anaconda3-4.2.0-Linux-x86_64.sh
Step3. 安裝Anaconda
bash Anaconda3-4.2.0-Linux-x86_64.sh -b
Step4. 編輯~/.bashrc 加入模組路徑
sudo gedit ~/.bashrc
輸入下列內容:
export PATH="/home/user/anaconda3/bin:PATH"
Step4. 編輯~/.bashrc 加入模組路徑
sudo gedit ~/.bashrc
4.4 在Anaconda虛擬環境安裝TensorFlow與Keras
Step5. 使~/.bashrc 修改生效
source ~/.bashrc
Step6. 查看python 版本
python --version
5.2 安裝TensorFlow與Keras
Step1. 安裝TensorFlow
pip install tensorflow
Step2. 安裝Keras
pip install keras
5.3 啟動Jupyter Notebook
啟動Jupyter Notebook
mkdir -p ~/pywork
cd ~/pywork
jupyter notebook

此圖出自TnsorFlow官網 https://www.tensorflow.org/

Share on Google Plus

About kevin

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 意見:

張貼留言