How can I check the version of scipy
installed on my system?
如何检查系统上安装的scipy版本?
4 个解决方案
#1
68
In [95]: import scipy
In [96]: scipy.__version__
Out[96]: '0.12.0'
In [104]: scipy.version.*version?
scipy.version.full_version
scipy.version.short_version
scipy.version.version
In [105]: scipy.version.full_version
Out[105]: '0.12.0'
In [106]: scipy.version.git_revision
Out[106]: 'cdd6b32233bbecc3e8cbc82531905b74f3ea66eb'
In [107]: scipy.version.release
Out[107]: True
In [108]: scipy.version.short_version
Out[108]: '0.12.0'
In [109]: scipy.version.version
Out[109]: '0.12.0'
See SciPy doveloper documentation for reference.
请参阅SciPy dopler文档以获得参考。
#2
6
on command line
在命令行
example$:python
>>> import scipy
>>> scipy.__version__
'0.9.0'
#3
5
Using command line:
使用命令行:
python -c "import scipy; print(scipy.__version__)"
#4
1
From the python command prompt:
从python命令提示符:
import scipy
print scipy.__version__
In python 3 you'll need to change it to:
在python 3中,您需要将其更改为:
print (scipy.__version__)
#1
68
In [95]: import scipy
In [96]: scipy.__version__
Out[96]: '0.12.0'
In [104]: scipy.version.*version?
scipy.version.full_version
scipy.version.short_version
scipy.version.version
In [105]: scipy.version.full_version
Out[105]: '0.12.0'
In [106]: scipy.version.git_revision
Out[106]: 'cdd6b32233bbecc3e8cbc82531905b74f3ea66eb'
In [107]: scipy.version.release
Out[107]: True
In [108]: scipy.version.short_version
Out[108]: '0.12.0'
In [109]: scipy.version.version
Out[109]: '0.12.0'
See SciPy doveloper documentation for reference.
请参阅SciPy dopler文档以获得参考。
#2
6
on command line
在命令行
example$:python
>>> import scipy
>>> scipy.__version__
'0.9.0'
#3
5
Using command line:
使用命令行:
python -c "import scipy; print(scipy.__version__)"
#4
1
From the python command prompt:
从python命令提示符:
import scipy
print scipy.__version__
In python 3 you'll need to change it to:
在python 3中,您需要将其更改为:
print (scipy.__version__)