Traceback (most recent call last):



 "<ipython-input-56-8bba75f2139c>", line 1, in <module>

print cosine_distance(a,b)



 "/anaconda2/lib/python2.7/site-packages/nltk/cluster/util.py", line 132, in cosine_distance

return 1 - (numpy.dot(u, v) / (



 "/anaconda2/lib/python2.7/site-packages/scipy/sparse/base.py", line 478, in __mul__

raise ValueError('dimension mismatch')

ValueError: dimension mismatch

Traceback (most recent call last):


 "C:\Program 
s\Miniconda2\Scripts\conda-script.py", line 5, in <module>

sys.exit(conda.cli.main())


 "C:\Program 
s\Miniconda2\lib\site-packages\conda\cli\main.py", line 152, in main

return conda_exception_handler(_main)


 "C:\Program 
s\Miniconda2\lib\site-packages\conda\exceptions.py", line 497, in conda_exception_handler

print_unexpected_error_message(e)


 "C:\Program 
s\Miniconda2\lib\site-packages\conda\exceptions.py", line 443, in print_unexpected_error_message

info_stdout, info_stderr = get_info()


 "C:\Program 
s\Miniconda2\lib\site-packages\conda\exceptions.py", line 413, in get_info

args.func(args, p)


 "C:\Program 
s\Miniconda2\lib\site-packages\conda\cli\main_info.py", line 156, in execute

from conda.api import get_index


 "C:\Program 
s\Miniconda2\lib\site-packages\conda\api.py", line 7, in <module>

from .fetch import fetch_index


 "C:\Program 
s\Miniconda2\lib\site-packages\conda\fetch.py", line 29, in <module>

from .connection import CondaSession, RETRIES


 "C:\Program 
s\Miniconda2\lib\site-packages\conda\connection.py", line 60, in <module>

python=platform.python_implementation(),


 "C:\Python27\Lib\platform.py", line 1458, in python_implementation

return _sys_version()[0]


 "C:\Python27\Lib\platform.py", line 1420, in _sys_version

repr(sys_version))
ValueError: failed to parse CPython sys.version: '2.7.12 |Continuum Analytics, Inc.| (default, Jun 29 2016, 11:42:13) [MSC v.1500 32 bit (Intel)]'