【jupyter】:anaconda環境下多python版本下安裝不同python版本的jupyter和spyder
阿新 • • 發佈:2019-02-08
1.經過嘗試,Windows下還是直接anaconda navigator下選擇不同python環境安裝比較方便。
2.jupyter預設目錄的更改
1 選擇一個用於存放config檔案的資料夾
2 在cmd中進入該資料夾的路徑
3在cmd中 輸入命令jupyter notebook –generate-config
4 此時在該資料夾中便生成一個notebook的config檔案,檔名是“jupyter_notebook_config.py”
5 開啟該檔案,修改
# The directory to use for notebooks and kernels.
# c.NotebookApp.notebook_dir = ””
為
# The directory to use for notebooks and kernels.
c.NotebookApp.notebook_dir = u'F:\python' #‘F:\python為指定的工作路徑’”(注意將#號刪除)
6.此時,你點選Windows導航欄“jupyter圖示”沒有改變,但是在“anaconda prompt”中
jupyter notebook
時,開啟的是設定的環境。