如何在清华源上安装 matplotlib.pyplot
要在清华源上安装 matplotlib.pyplot,您需要按照以下步骤进行操作:
-
打开终端或命令提示符。
-
使用以下命令将清华源添加到 pip 配置文件中:
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
3. 确保您已经安装了 pip,如果没有,请使用以下命令安装 pip:
python -m ensurepip --default-pip
4. 使用以下命令安装 matplotlib.pyplot:
pip install matplotlib
安装完成后,您就可以在 Python 脚本中使用 matplotlib.pyplot 库了。
原文地址: https://www.cveoy.top/t/topic/nBHi 著作权归作者所有。请勿转载和采集!