安装清华源下面的matplotlib库
时间: 2023-12-04 17:04:27 浏览: 30
您可以通过以下命令来安装清华源下的matplotlib库:
```
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple matplotlib
```
需要注意的是,该命令需在命令行中运行,并需要在已安装python环境中执行。同时,您需要保证网络连接正常以及清华源可用。
相关问题
清华源 安装 matplotlib
要在清华源上安装 `matplotlib`,可以按照以下步骤进行操作:
1. 打开终端或命令提示符。
2. 使用以下命令更新系统软件包列表:
```
sudo apt update
```
3. 使用以下命令安装 `matplotlib`:
```
sudo apt install python3-matplotlib
```
这样,`matplotlib` 应该会被成功安装在您的系统上。
使用清华源下载matplotlib库的语句
在Linux系统下,使用以下命令可以从清华源下载matplotlib库:
```
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple matplotlib
```
其中,`-i`选项指定了使用的源,这里使用清华源;`matplotlib`为需要下载的库名。