ModuleNotFoundError: Pyramid

Question:

I’m trying to import these libraries:

from math import sqrt
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from statsmodels.tsa.arima_model import ARIMA
from sklearn.metrics import mean_absolute_error, mean_squared_error
from pyramid.arima import auto_arima
from statsmodels.tsa.stattools import adfuller

But this error is coming again and again
ModuleNotFoundError: No module named ‘pyramid’
I have tried pip install pyramid-arima but it’s also throwing me so many errors in cmd.

Can anyone suggest to me what I can do to resolve this problem?

Asked By: Mudrika Trivedi

||

Answers:

try

pip install pmdarima

pmdarima is the official new name for pyramid.arima.

Answered By: supercooler8

Try to install pmdarima by using pip:

pip install pmdarima

I also needed to modify my python script to use:

from pmdarima.arima import auto_arima
Answered By: Carlos Ferreira