简体   繁体   中英

How to fix error with importing skforecast using Jupyter

When I use pip install skforecast in Jupyter, the install completes successfully.

Next, when I use from skforecast.ForecasterAutoreg import ForecasterAutoreg I get the following error:

ModuleNotFoundError: No module named '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

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.

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. 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.

Try install older version, It's worked for me.

pip install skforecast==0.4.1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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