清华镜像安装lazypredic
时间: 2024-06-09 11:07:14 浏览: 34
镜像系统安装
你可以按照以下步骤在清华镜像安装lazypredict:
1. 打开终端并输入以下命令,切换到root用户:
```
sudo su
```
2. 输入以下命令,添加清华镜像源:
```
echo "deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse" > /etc/apt/sources.list.d/tsinghua.list
echo "deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse" >> /etc/apt/sources.list.d/tsinghua.list
echo "deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse" >> /etc/apt/sources.list.d/tsinghua.list
echo "deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse" >> /etc/apt/sources.list.d/tsinghua.list
```
3. 更新软件包信息:
```
apt-get update
```
4. 安装lazypredict:
```
apt-get install python3-lazypredict
```
安装完成后,你就可以在Python中导入lazypredict并使用它了。
阅读全文