Почему возникает эта ошибка AttributeError в python?

Есть одна вещь, которую я не понимаю.

Почему это

import scipy # happens with several other modules, too. I took scipy as an example now...

matrix = scipy.sparse.coo_matrix(some_params)

вызывает эту ошибку:

AttributeError: 'module' object has no attribute 'sparse'
38
задан Aufwind 2 January 2012 в 00:23
поделиться