ubuntu安装jupyter速度慢
时间: 2023-11-10 17:04:30 浏览: 88
Ubuntu安装Jupyter Notebook教程
可能是因为下载源的问题导致安装速度慢。可以尝试更换下载源,比如使用清华大学的镜像源。
具体操作步骤如下:
1. 打开终端,输入以下命令备份原有的源列表文件:
```
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
```
2. 编辑源列表文件,将原有的内容注释掉,添加清华大学的镜像源:
```
sudo gedit /etc/apt/sources.list
```
在打开的文件中添加以下内容:
```
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
```
3. 更新源列表:
```
sudo apt-get update
```
4. 安装 jupyter:
```
sudo apt-get install jupyter
```
阅读全文