ubuntu18.04安装jupyter
时间: 2023-05-01 11:02:29 浏览: 298
安装Jupyter在Ubuntu18.04上的步骤如下:
1. 打开终端
2. 输入以下命令来安装pip:
```
sudo apt-get update
sudo apt-get install python3-pip
```
3. 安装Jupyter:
```
sudo pip3 install jupyter
```
4. 运行Jupyter:
```
jupyter notebook
```
5. 在本地浏览器中打开http:// localhost:8888以开始使用Jupyter。
相关问题
ubuntu 18.04安装jupyter lab
以下是在Ubuntu 18.04上安装Jupyter Lab的步骤:
1. 打开终端并更新软件包列表:
sudo apt-get update
2. 安装Python 3和pip:
sudo apt-get install python3 python3-pip
3. 安装Jupyter Lab:
pip3 install jupyterlab
4. 启动Jupyter Lab:
jupyter lab
5. 在浏览器中打开Jupyter Lab:
在终端中,Jupyter Lab将显示一个URL,将其复制并在浏览器中打开即可。
希望这能帮助您安装Jupyter Lab。
ubuntu18.04安装anconda
1. 首先,从Anaconda官网下载适合你的Ubuntu版本的安装包,下载地址为:https://www.anaconda.com/products/distribution#download-section
2. 下载完成后,打开终端,进入下载目录,使用以下命令进行安装:
```
bash Anaconda3-2021.05-Linux-x86_64.sh
```
注意:这里的文件名应该根据你下载的版本而定。
3. 安装过程中,会提示你是否同意许可协议,输入yes即可。
4. 接下来,会提示你选择安装路径,默认路径为/home/你的用户名/anaconda3,如果你想更改安装路径,可以输入新路径。
5. 安装完成后,需要重新启动终端,使得环境变量生效。输入以下命令:
```
source ~/.bashrc
```
6. 安装完成后,可以通过以下命令验证是否安装成功:
```
conda --version
```
如果成功安装,会显示出conda的版本号。
7. 安装完成后,可以通过以下命令打开Anaconda Navigator:
```
anaconda-navigator
```
或者通过以下命令打开Jupyter Notebook:
```
jupyter notebook
```
注意:在第一次打开Jupyter Notebook时,需要输入以下命令进行配置:
```
jupyter notebook --generate-config
```
然后,打开配置文件,将以下两行代码的注释去掉,并将c.NotebookApp.ip的值改为'localhost',保存并退出:
```
c.NotebookApp.allow_origin = '*'
c.NotebookApp.ip = 'localhost'
```
然后,就可以通过浏览器访问Jupyter Notebook了。
阅读全文
相关推荐















