import factor_analyzer
print(factor_analyzer._version)
import pkg_resources
pkg_resources.get_distribution("factor_analyzer").version
'0.2.3'
如果你想从命令行运行它,你可以这样做:
python -c "import pkg_resources; print(pkg_resources.get_distribution('construct').version)"
网友评论