[英]How to fix error with importing skforecast using Jupyter
When I use pip install skforecast
in Jupyter, the install completes successfully.当我在 Jupyter 中使用
pip install skforecast
时,安装成功完成。
Next, when I use from skforecast.ForecasterAutoreg import ForecasterAutoreg
I get the following error:接下来,当我使用
from skforecast.ForecasterAutoreg import ForecasterAutoreg
时,出现以下错误:
ModuleNotFoundError: No module named 'skforecast'
ModuleNotFoundError:没有名为“skforecast”的模块
I have tried pip and pip3 for all 3 suggested installs in the docs: https://joaquinamatrodrigo.github.io/skforecast/0.4.3/index.html我已经为文档中的所有 3 个建议安装尝试了 pip 和 pip3: https://joaquinamatrodrigo.github.io/skforecast/0.4.3/index.html
Any advice on how to fix this would be greatly appreciated.任何有关如何解决此问题的建议将不胜感激。
I had the same problem when trying to run jupyter from a virtual environment.尝试从虚拟环境运行 jupyter 时遇到了同样的问题。
I think it has to do with the kernel, but anyway, following the approach presented in https://www.linkedin.com/pulse/how-use-virtual-environment-inside-jupyter-lab-sina-khoshgoftar solved my problems.我认为这与 kernel 有关,但无论如何,按照https://www.linkedin.com/pulse/how-use-virtual-environment-inside-jupyter-lab-sina-khoshgoftar中提出的方法解决了我的问题. It is not a solution to your exact problem as you describe it, but maybe can hint you in the right direction, given there are no other responses.
正如您所描述的那样,它不是您确切问题的解决方案,但也许可以提示您正确的方向,因为没有其他响应。
It seems the same problem also occurs for sklearn sometimes. sklearn 有时也会出现同样的问题。
Try install older version, It's worked for me.尝试安装旧版本,它对我有用。
pip install skforecast==0.4.1
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.