我使用conda
創建了一個名爲testEnv
的環境並激活它,之後我使用命令jupyter notebook
來調用jupyter編輯器。它的工作原理,但問題是,我只能在根環境中創建文件。我如何在testEnv
環境中創建文件?如何在由conda創建的環境中啓動jupyter?
這裏是我做了什麼步驟:
$ conda create -n testEnv python=3.5 # create environmet
$ source activate testEnv # activate the environmet
(testEnv)$ jupyter notebook # start the jupyter notebook
這裏有結果,這說明我只能在「testEnv」創建文件與「根」,但不是(只有Root
,但沒有testEnv
):
在標籤Conda
,我可以看到testEnv
,但我該如何切換呢?
您是否嘗試過[這些答案](http://stackoverflow.com/questions/24117132/change-anaconda-ipython-main-directory)? – ragesz
嗨@ragesz,這個答案是改變ipython的主目錄,但我只想使用jupyter作爲編輯環境 – xirururu
@xirururu你必須安裝Jupyter到你想要使用它的每個環境中。 'conda創建-n testEnv python = 3.5筆記本' – darthbith