Python在Windows系统中安装matplotlib

安装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:

cd your_python_workspace
your_python_workspace>python -m pip install --user your_installation_path

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

import matplotlib

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

发布了45 篇原创文章 · 获赞 52 · 访问量 2819

猜你喜欢

转载自blog.csdn.net/weixin_43520670/article/details/99441132