Python import error “getfullargspec”

一曲冷凌霜 提交于 2021-01-28 07:34:59

问题


when I do:

from sklearn import linear_model

I get the error:

ImportError: cannot import name 'getfullargspec'

Interestingly, this does not happen a few days ago. So I tried to install python and scipy stack again on my computer using Anaconda again but does not solve the problem. What might be wrong with my system?

Thank you in advance.


回答1:


Install using pip

pip install scipy

And use pip to install the following packages such as numpy, pandas, etc...

If you are using Python 3 then install pip3 and use pip3 install scipy

Check this answer out if problem persists: https://stackoverflow.com/a/27425458/5110035



来源:https://stackoverflow.com/questions/44495251/python-import-error-getfullargspec

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!