【发布时间】:2013-12-09 10:32:57
【问题描述】:
我刚刚安装了 python 模块:construct 和 statlib 和 setuptools,如下所示:
# Install setuptools to be able to download the following
sudo apt-get install python-setuptools
# Install statlib for lightweight statistical tools
sudo easy_install statlib
# Install construct for packing/unpacking binary data
sudo easy_install construct
我希望能够(以编程方式)检查他们的版本。是否有与python --version 等效的我可以从命令行运行?
我的python版本是2.7.3。
【问题讨论】:
-
如果对命令行解决方案感兴趣,请使用:
pip list
标签: python