anaconda 虛擬環境創建及刪除
創建名爲liberyu_tf的虛擬環境,且python 版本爲python3.6
$ conda create -n liberyu_tf python=3.6
刪除名爲liberyu_tf的虛擬環境
$ conda remove -n liberyu_tf --all
anaconda 虛擬環境在jupyter中無法調用
激活liberyu_tf的虛擬環境,然後在此環境下安裝ipykernel ,然後在jupyter中起一個名爲temp_liberyu_tf的名字顯示在jupyter notebook的環境中,其中這個環境與當前的liberyu_tf這個環境相對應。
$ source activate liberyu_tf
$ conda install ipykernel
$ python -m ipykernel install --user --name temp_liberyu_tf
刪除jupyter中的虛擬環境
刪除jupyter 中名爲temp_liberyu_tf的環境
$ jupyter kernelspec remove temp_liberyu_tf