###### tags: `deep learning` `anaconda` `jupyter` # Anaconda 安裝 tensorflow and PyTorch ## 安裝Anaconda後 創建虛擬環境 ```python=3.6 conda create -n [env_name] python=3.X ``` ## 刪除虛擬環境 ```python=3.6 conda env remove -n [env_name] ``` ## 進入虛擬環境 ```python=3.6 conda activate [env_name] ``` ## 退出虛擬環境 ```python=3.6 conda deactivate ``` ## 搜尋Package.版本 ```python=3.6 conda search tensorflow-gpu ``` ## 查看環境中安裝package ```python=3.6 conda list ``` ## 查看虛擬環境 ```python=3.6 conda env list ``` ## 查看可以使用conda install 安裝之package > https://anaconda.org/anaconda/repo ## 安裝tensorflow ```python=3.6 conda install tensorflow-gpu conda install tensorflow=1.XX ``` ## 安裝PyTorch ```python=3.6 conda install pytorch ``` ## 安裝Jupyter 安裝完成後,可在安裝 ```python=3.6 conda install jupyter notebook ``` or ```python=3.6 conda install jupyterlab ``` ## 安裝其他Package ``` conda install numpy conda install matplotlib ...etc ``` # 遠端連線設定 1. 安裝jupyter notebook 後 2. 生成sha1密碼 ```python=3.6 python from notebook.auth import passwd; passwd() ```  3. 生成config檔 ``` jupyter notebook --generate-config ``` 4. 更改config檔內容 ```config c.NotebookApp.ip = '*' #sign in IP (*) = every ip c.NotebookApp.password = ' sha1:-----' # password c.NotebookApp.port = 8000 # define your port ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up