栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

在python3.7下怎么安装matplotlib

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力


在python3.7下怎么安装matplotlib

Matplotlib python3是一款可视化绘图工具工具,其在Windows下的安装过程如下:

(1)在Matplotlib的*网下载电脑对应的版本,网址为:https://pypi.org/project/matplotlib/#files。

(2)将在下载的.whl文件放在python的Scripts目录下,如图:


在python3.7下怎么安装matplotlib

(3)cmd打开命令提示符,切换到刚才的目录下。

![切换目录](https://img-blog.csdnimg.cn/20181102202448589.

(4)安装:输入pip3 install matplotlib-3.0.1-cp35-cp35m-win_amd64.whl


在python3.7下怎么安装matplotlib

提示错误:说.whl文件在这个平台不可用。

解决方法:先查看pip可支持的文件名及版本,方法如下:

如果电脑为32位的在cmd下输入:

import pip

print(pip.pep425tags.get_supported())

如果电脑为64位输入:

import pip._internal

print(pip._internal.pep425tags.get_supported())


在python3.7下怎么安装matplotlib

可以发现matplotlib-3.0.1-cp35-cp35m-win_amd64.whl这个文件是不支持的,将文件改为改为matplotlib-3.0.1-cp37-cp37m-win_amd64.whl,并且在cmd下重新安装即可。


在python3.7下怎么安装matplotlib

相关推荐:《Python视频教程》

以上就是在python3.7下怎么安装matplotlib的详细内容,更多请关注考高分网其它

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/805473.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号