繁体   English   中英

导入 statsmodels.api 时出错“AttributeError:模块‘scipy’没有属性‘_lib’”

[英]Error While Importing statsmodels.api "AttributeError: module 'scipy' has no attribute '_lib'"

当我import statsmodels.api as sm时出现错误import statsmodels.api as sm
但是如果我只import statsmodels as sm那么它不会给出任何错误

但几天前import statsmodels.api as sm也在工作
我也试过pip install statsmodels --force-reinstall --user但它没有解决问题

而且我的 python 文件没有命名为statsmodels.pystatsmodels.ipynb

在我运行pip install statsmodels --force-reinstall --user后重新加载 vs code 后,它解决了我的问题

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM