Python在Windows系统中安装matplotlib

素颜马尾好姑娘i 2021-10-18 23:32 592阅读 0赞

安装matplotlib

1.安装Visual Studio
在Windows中安装matplotlib,首先要安装Visual Studio。点击下载。下载后运行该应用程序。

2.下载matplotlib安装程序
点击进入官网,请下载与你的Python版本匹配的文件。例如,如果你使用的是32位的Python3.5,则需要下载matplotlib-1.4.3-cp35-none-win32.whl。下载完成后,将这个.whl文件复制到你的项目文件夹,打开一个命令窗口,并切换到该项目文件夹,再使用pip来安装matplotlib:

  1. cd your_python_workspace
  2. your_python_workspace>python -m pip install --user your_installation_path

3.测试matplotlib
在Python界面中输入

  1. import matplotlib

如果没有错误则安装成功
(参考资料《Python编程从入门到实践》)

发表评论

表情:
评论列表 (有 0 条评论,592人围观)

还没有评论,来说两句吧...

相关阅读