Python在Windows系统中安装matplotlib

安装matplotlib 1.安装Visual Studio 在Windows中安装matplotlib,首先要安装Visual Studio。点击下载。下载后运行该应用程序。 2.下载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编程从入门到实践》)

发布者:admin,转转请注明出处:http://www.yc00.com/web/1733929668a3732128.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信