python和numpy matplotlib版本匹配及安装指定版本库

 更新时间:2023年10月28日 08:31:52   作者:innovationy  
Matplotlib 是 Python 的绘图库,它经常与NumPy一起使用,从而提供一种能够代替Matlab的方案,这篇文章主要给大家介绍了关于python和numpy matplotlib版本匹配及安装指定版本库的相关资料,文中通过图文介绍的非常详细,需要的朋友可以参考下

python和numpy matplotlib版本匹配,以及安装指定版本库

Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in Python.

已知的兼容版本:

    python3.6;
    numpy1.16.3或者1.18.2;
    pandas0.24.2;
    matplotlib3.0.3
    scipy 1.3.1
    scikit-learn==0.22.1

一、卸载

pip uninstall numpy

其他库类似

二、安装

安装指定版本的库

conda install numpy==1.16.3

pip install matplotlib==3.0.3
pip install scipy==1.3.1

亲测pip install 比conda install更快

三、验证

输入

python
import numpy
import matplotlib

成功!

至此老衲的pytorch的GPU环境和tensorflow的GPU环境的sklearn已全部配置完毕!嘻嘻哈哈!

总结

到此这篇关于python和numpy matplotlib版本匹配及安装指定版本库的文章就介绍到这了,更多相关python和numpy matplotlib版本匹配内容请搜索脚本之家以前的文章或继续浏览下面的相关文章希望大家以后多多支持脚本之家!

相关文章

最新评论