import sklearn
print('scikit-learn version is {}.'.format(sklearn.__version__))
scikit-learn version is 0.22.
import platform
import sys
#5-element tuple indicating version number:major, minor, micro, releaselevel, serial
print('python version is {}.'.format(sys.version_info))
# 'major.minor.patchlevel'Format string
print('python version is {}.'.format(platform.python_version()))
# (* Not recommended) A character string that indicates information such as the build number and compiler used in addition to the Python interpreter version number.
print('python version is {}.'.format(sys.version))
python version is sys.version_info(major=3, minor=6, micro=8, releaselevel='final', serial=0).
python version is 3.6.8.
python version is 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 24 2018, 00:16:47) [MSC v.1916 64 bit (AMD64)].
Recommended Posts