- 安裝python環境
- 安裝pip
- 安裝virtualenv (pip3 install -U pip virtualenv)
pip 安裝TensorFlowpython
步驟:docker
建立虛擬環境dom
virtualenv --system-site-packages -p python3 ./venv
進入虛擬環境code
venv\Scripts\activate
更新piporm
pip install --upgrade pip
展現 venv 中已安裝的軟件包ip
pip list
使用完 TensorFlow 後,方可推出 venv 虛擬環境it
deactivate
安裝TensorFlowpip
pip install --upgrade tensorflow
這裏須要注意python3.6在Windows下必須使用64 bit的版本,不然安裝不成功
驗證安裝io
python -c "import tensorflow as tf;tf.enable_eager_execution();print(tf.reduce_sum(tf.random_normal([1000, 1000])))"
安裝 Jupyter NoteBookimport
(venv) $ pip install jupyter (venv) $ python -m ipykernel install --user --name=venv
安裝鏡像
docker pull tensorflow/tensorflow:nightly-jupyter
docker run -it -p 8888:8888 -v $(notebook-examples-path):/tf/notebookstensorflow/tensorflow:nightly-jupyter
感謝閱讀,但願閣下在AI領域越走越遠~