1

For import statsmodels.api I get

 File "C:\Users\Saul Ramirez\AppData\Local\Continuum\Anaconda3\lib\site-packages\statsmodels\tools\linalg.py", line 23, in <module>
    from scipy.linalg import calc_lwork

ImportError: cannot import name 'calc_lwork'

When I check the directory above, the module calc_lwork is not in scipy.linalg.
When I check the scipy master branch on github, calc_lwork is not in scipy.linalg.
Did I install/build something incorrectly?

I am using the latest statsmodels and scipy, Spyder (Python 3.4)

2 Answers 2

1

This is a current bug. Please see here for more details. You can downgrade scipy to 0.14 or update statmodels to master.

Sign up to request clarification or add additional context in comments.

1 Comment

update: scipy 0.15.1 has been released which fixes the backwards compatibility problem, and released versions of statsmodels should work using scipy 0.15.1.
0

For me, this problem occured when I was using Python 2(2.7.12). It worked fine with python3 (3.6.3)

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.