可以通过
apt-get install
安装Jupyter Notebook吗?例如,我们可以使用apt-get install python-numpy
来安装numpy。apt-get install
安装Jupyter Notebook吗?例如,我们可以使用apt-get install python-numpy
来安装numpy。sudo apt install epiphany jupyter-notebook
jupyter_notebook_config.py
的方法如下:jupyter notebook --generate-config # type y for yes at the prompt
~/.jupyter/jupyter_notebook_config.py
进行编辑,并更改:# c.NotebookApp.browser = ''
c.NotebookApp.browser = '/usr/bin/epiphany'
#
,这样它就不再是注释了。如果你不喜欢Web浏览器,可以使用其他浏览器,只要它不是一个快照包,并且将路径从/usr/bin/epiphany
更改为你的浏览器路径,你可以通过运行形如which my-web-browser
的命令找到。~/.local/share/jupyter
目录的所有权从root更改为user。在下面的命令中,将user替换为你自己登录时使用的用户名。sudo chown -R user:user ~/.local/share/jupyter
打开终端并输入:
sudo apt install jupyter-notebook jupyter # jupyter 是可选的
打开终端并输入:
sudo apt install python3-notebook jupyter jupyter-core python-ipykernel
jupyter notebook
Ubuntu 17.04和17.10
在Ubuntu 17.04及更高版本中,Jupyter Notebook可以在默认的Ubuntu软件源中找到,并且可以通过apt快速简便地安装。打开终端并输入以下命令:
sudo apt install jupyter-notebook jupyter-core python-ipykernel
在Jupyter Notebook中运行Python 2.x程序需要python-ipykernel,否则只支持Python 3.x。
要启动笔记本服务器,请运行以下命令:
jupyter notebook
我使用它安装了
pip install jupyter
(如果安装了Python3,请使用pip3;同时确保您具有root访问权限,即作为root@...登录到终端)
以及Python依赖项
apt-get install build-essential python3-dev
sudo -H pip3 install jupyter
(使用pip3
,而不是pip
)在我尝试了许多其他方法之后终于成功了。我在搭载Python 3.5.3的Ubuntu Linux上进行了这个操作,这台电脑是Lenovo Chromebook C330。我还安装了Spyder和一些常用命令,比如"locate"。
python -m pip install jupyter
python3 -m pip install jupyter
python -m pip install jupyter --user
python3 -m pip install jupyter --user
apt-file find jupyter ## returns no results
sudo apt-get install python-pip
pip install --upgrade pip ## secret sauce -- pip fails otherwise
sudo pip install jupyter
那么
jupyter notebook
sudo -H pip install jupyter
jupyter notebook
$jupyter notebook
执行Jupyter命令'notebook'时出错:[Errno 2] 没有该文件或目录 - Boba Fitjupyter-troubleshoot
可以帮助您解决这个问题。 - karelapt-get install jupyter-notebook
,就像这里建议的一样:https://stackoverflow.com/questions/42648610/error-when-executing-jupyter-notebook-no-such-file-or-directory - Felixapt-get install jupyter-notebook
命令即可。 - dmvianna