0

While working anaconda spyder, I have this weird behavior with the package scipy.

enter image description here

The first time I tried to use sparse.linalg, I get an error:

AttributeError: module 'scipy.sparse' has no attribute 'linalg'

However, I was able to load linalg with from scipy.sparse import linalg. And after this, the above error doesn't appear again.

Gillu13
  • 898
  • 6
  • 11
kksagar
  • 267
  • 1
  • 3
  • 14
  • I this [this](https://stackoverflow.com/questions/49641621/do-i-need-to-import-submodules-directly/49641638#49641638) post answers your question – Gillu13 Aug 25 '20 at 10:17

0 Answers0