Python StatsModel库-导入/属性错误

Python StatsModel库-导入/属性错误,python,installation,importerror,statsmodels,Python,Installation,Importerror,Statsmodels,导入statsmodels库时遇到问题。我用pip安装了它 (base) d:\xxx\Python>pip install --upgrade --no-deps statsmodels Collecting statsmodels Using cached https://files.pythonhosted.org/packages/0a/ed/714934d2836a8d03859275ce370f249dadb88c74dd74e3f3a888941166ab/statsmo

导入statsmodels库时遇到问题。我用pip安装了它

(base) d:\xxx\Python>pip install --upgrade --no-deps statsmodels
Collecting statsmodels
  Using cached https://files.pythonhosted.org/packages/0a/ed/714934d2836a8d03859275ce370f249dadb88c74dd74e3f3a888941166ab/statsmodels-0.10.1-cp37-none-win_amd64.whl
Installing collected packages: statsmodels
Successfully installed statsmodels-0.10.1
错误是:

 import statsmodels
ModuleNotFoundError: No module named 'statsmodels'
我真的不明白为什么它不起作用。模块存在。我试着用git安装它,但是我遇到了同样的错误

解决方案后编辑:

有关导入的信息:

我的错误在皮普身上。皮普不行。安装它与

pip3 install statsmodels

这回答了你的问题吗?谢谢,但问题出在python版本中。pip不起作用,但pip3起作用。谢谢