簡體   English   中英

無法在 Ubuntu 上的 Python 環境中運行 Jupyter Notebook

[英]Can't run Jupyter Notebook within Python environment on Ubuntu

我已經安裝了 Anaconda 並創建了一個名為Python3的虛擬 Python3 環境。 在我激活環境之前,我可以運行jupyter notebook並打開 Jupyter。 但是如果我激活環境然后運行:

$source activate Python3
$jupyter notebook

我會得到一個No such file or directory錯誤,它指示我使用sudo apt install jupyter 我這樣做了,但現在我得到:

Error executing Jupyter command 'notebook': [Errno 2] No such file or directory

我是否必須執行一些 PATH 技巧才能完成這項工作?

我遇到了類似的問題。 這就是我為解決這個問題所做的(在Ubuntu 上):

sudo apt-get remove ipython
sudo apt-get purge ipython
sudo apt-get autoremove
pip install jupyter

ipython似乎是問題所在,因此刪除它可以解決問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM