如何知道已安装的pylab版本?

5

我似乎在安装软件包方面遇到了问题。我需要知道在我所使用的Python 2.7中,安装了哪个版本的pylab。

pylab模块位于以下路径中(我已安装anaconda): ..../anaconda/lib/python2.7/site-packages/IPython/core/magics/pylab.py


1
可能有用的是了解matplotlib vs pyplot vs pylab https://dev59.com/TGQn5IYBdhLWcg3wamnO#16849816 - tacaswell
2个回答

12

正如 Ted Kim 所提到的,“Matplotlib 是一个完整的包;pylab 是 matplotlib 中的一个模块”

可以通过以下方式查询 Matplotlib 的版本:

import matplotlib
print matplotlib.__version__

2

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接