教程集 www.jiaochengji.com
教程集 >  脚本编程  >  php  >  正文 在python3.7下怎么安装matplotlib

在python3.7下怎么安装matplotlib

发布时间:2020-11-12   编辑:jiaochengji.com
教程集为您提供在python3.7下怎么安装matplotlib等资源,欢迎您收藏本站,我们将为您提供最新的在python3.7下怎么安装matplotlib资源

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

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

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

1.jpg

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

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

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

1.jpg

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

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

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

import pip

print(pip.pep425tags.get_supported())

如果电脑为64位输入:

import pip._internal

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

1.jpg

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

1.jpg

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

以上就是在python3.7下怎么安装matplotlib的详细内容,更多请关注教程集其它相关文章!

  • 本文原创发布教程集,转载请注明出处,感谢您的尊重!
  • 您可能感兴趣的文章:
    在python3.7下怎么安装matplotlib
    mac怎么删除python
    怎么安装python3.7
    Python Matplotlib安装过程详解
    python连接数据库失败怎么解决
    怎么看安装了哪些第三方库在python
    怎样用python加载dicom图片
    Python3.7在64位操作系统中怎么下载?
    python pip无法使用怎么办
    python怎么画曲线图

    [关闭]
    ~ ~