Try   HackMD
tags: deep learning anaconda jupyter

Anaconda 安裝 tensorflow and PyTorch

安裝Anaconda後 創建虛擬環境

conda create -n [env_name] python=3.X

刪除虛擬環境

conda env remove -n [env_name] 

進入虛擬環境

conda activate [env_name]

退出虛擬環境

conda deactivate

搜尋Package.版本

conda search tensorflow-gpu

查看環境中安裝package

conda list 

查看虛擬環境

conda env list 

查看可以使用conda install 安裝之package

https://anaconda.org/anaconda/repo

安裝tensorflow

conda install tensorflow-gpu
conda install tensorflow=1.XX

安裝PyTorch

conda install pytorch

安裝Jupyter

安裝完成後,可在安裝

conda install jupyter notebook

or

conda install jupyterlab

安裝其他Package

conda install numpy
conda install matplotlib
...etc

遠端連線設定

  1. 安裝jupyter notebook 後
  2. 生成sha1密碼
python
from notebook.auth import passwd; passwd()

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

  1. 生成config檔
jupyter notebook --generate-config
  1. 更改config檔內容
c.NotebookApp.ip = '*' #sign in IP      (*) = every ip
c.NotebookApp.password = ' sha1:-----' # password
c.NotebookApp.port = 8000   # define your port