Often we run into situation to check what version we are running for particular framework, language, module.
Here, I have tried to list down the one I come across during my work -
Go to Python shell and follow below instruction for individual.
Django
>>> import django
>>> print django.VERSION
(1, 3, 1, 'final', 0)
Python
>>> import sys
>>> print sys.version
2.7.1 (r271:86832, Jul 31 2011, 19:30:53)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)]
NLTK
>>> import nltk
>>> nltk.__version__
'2.0.1rc4'
dateutil
>>> import dateutil
>>> dateutil.__version__
'1.5'
- Important thing to note here is python-dateutil 2.0 is not compatible with python 2.7 it only works with python 3.0. For 2.7 please try 1.5
-If you have 2.0, first uninstall and then install specific one
$ pip uninstall python-dateutil
$ pip install python-dateutil==1.5
Here, I have tried to list down the one I come across during my work -
Go to Python shell and follow below instruction for individual.
Django
>>> import django
>>> print django.VERSION
(1, 3, 1, 'final', 0)
Python
>>> import sys
>>> print sys.version
2.7.1 (r271:86832, Jul 31 2011, 19:30:53)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)]
NLTK
>>> import nltk
>>> nltk.__version__
'2.0.1rc4'
dateutil
>>> import dateutil
>>> dateutil.__version__
'1.5'
- Important thing to note here is python-dateutil 2.0 is not compatible with python 2.7 it only works with python 3.0. For 2.7 please try 1.5
-If you have 2.0, first uninstall and then install specific one
$ pip uninstall python-dateutil
$ pip install python-dateutil==1.5