查看python和NumPy版本和安装路径

记录查看Python和NumPy版本以及路径的几条命令

# 查看Python版本及路径
python -V

python -c "import sys;print(sys.executable)"

# 查看NumPy版本及路径
python -c "import numpy;print(numpy.version.version)"

python -c "import  numpy;print(numpy.__version__)"

# 借助pip命令,类似的也可以查看其他用pip安装的软件的信息
pip3 show numpy

实际运行结果图:

原文地址:https://www.cnblogs.com/youpeng/p/11346899.html