1 查看python版本
python -V 注意:大V
或者
python --version 注意:兩個‘-’
查看python安裝位置
python -c "import sys; print sys.executable"
或者
python -c "import os; print os.sys.executable"
python -c "import os; path = os.sys.executable;folder=path[0 : path.rfind(os.sep)]; print folder"
2 查看Numpy版本: numpy.__version__
查看Numpy安裝路徑: numpy.__file__
3 查看SciPy版本: scipy.__version__
查看SciPy安裝路徑: scipy.__file__
4 查看Matplotlib版本: matplotlib.__version__
查看Matplotlib安裝路徑:matplotlib.__file__
