pycaret / pycaret

An open-source, low-code machine learning library in Python
https://www.pycaret.org
MIT License
8.93k stars 1.77k forks source link

[Time Series Package Installation] No module named 'pycaret.internal.pycaret_experiment' #1851

Closed kurucan closed 2 years ago

kurucan commented 2 years ago

On my linux python 3.7 virtual environment, I have installed the latest pycaret from pip, I get the error below while importing?

I am following the example on the notebook below; https://nbviewer.org/github/pycaret/pycaret/blob/time_series_beta/time_series_101.ipynb

import time import numpy as np import pandas as pd

from pycaret.datasets import get_data from pycaret.internal.pycaret_experiment import TimeSeriesExperiment


ModuleNotFoundError Traceback (most recent call last)

in 4 5 from pycaret.datasets import get_data ----> 6 from pycaret.internal.pycaret_experiment import TimeSeriesExperiment ModuleNotFoundError: No module named 'pycaret.internal.pycaret_experiment'
moezali1 commented 2 years ago

@kurucan You have to install pycaret-ts-alpha. Please create a new conda environment and install time series module with pip install pycaret-ts-alpha. It should work then!

kurucan commented 2 years ago

@kurucan You have to install pycaret-ts-alpha. Please create a new conda environment and install time series module with pip install pycaret-ts-alpha. It should work then!

sorry, I missed that it is a seperate package, thanks !

I have successufully run the example on python env, not on conda.

ngupta23 commented 2 years ago

Just a follow-up in case folks face the same issue again.

pycaret-ts-alpha has been depracated and the time series module has now been merged back to the main pycaret module. You can install it by using

pip install --pre pycaret

With this installation, you can now also use the time series module along with the other tasks such as regression, classification, clustering, etc.