安裝的Anaconda3,安裝程序一切正常,安裝完成后運行Jupyter Notebook出現了一些問題:
問題一:Jupyter Notebook的啟動地址問題
啟動后,瀏覽器地址欄顯示的地址為:http://localhost:8889/undefined/tree,而不是:http://localhost:8889/tree,如下圖。

問題二:新建檔案報錯
新建檔案直接報錯,錯誤提示如下(應該還是地址的問題):

終端命令如下:
[I 10:08:43.264 NotebookApp] JupyterLab alpha preview extension loaded from D:\Anaconda3\lib\site-packages\jupyterlab
JupyterLab v0.27.0
Known labextensions:
[I 10:08:43.266 NotebookApp] Running the core application with no additional extensions or settings
[I 10:08:43.680 NotebookApp] Serving notebooks from local directory: d:\py
[I 10:08:43.681 NotebookApp] 0 active kernels
[I 10:08:43.681 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/?token=44b3235a90c7c85f5af5c2564df42c34408fb03575bf0c73
[I 10:08:43.681 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 10:08:43.683 NotebookApp]
Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://localhost:8888/?token=44b3235a90c7c85f5af5c2564df42c34408fb03575bf0c73
[I 10:08:45.579 NotebookApp] Accepting one-time-token-authenticated connection from ::1
[W 10:10:24.701 NotebookApp] 404 GET /undefined/undefined (::1) 5.01ms referer=None
[I 10:10:24.807 NotebookApp] Creating new notebook in
uj5u.com熱心網友回復:
看日志像后臺服務出錯了。uj5u.com熱心網友回復:
反正Python環境容易出問題,我也是,同樣的代碼,本來運行沒問題,過一會兒用jupyter notebook運行報錯,重啟notebook代碼又能正常運行uj5u.com熱心網友回復:
這里有幾種安裝方式,可以試一下:https://www.hellodemos.com/hello-jupyter/jupyter-install.html轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/105057.html
上一篇:匯編語言,字串影片顯示
