Skip to content Skip to sidebar Skip to footer

Import Scipy.stats Error

So I want to import scipy.stats, for whatever reason when I type : import scipy it works just fine, no error, but when I type : import scipy.stats Suddenly I got an error : C:\

Solution 1:

The last part of the error clearly shows one of the files in your directory setup is shadowing the scipy package:

'scipy' is not a package

Well, scipy is a package.

You have a file called scipy.py in your directory, and that's why the first import works while the second does not.

Post a Comment for "Import Scipy.stats Error"