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