Modulenotfounderror: No Module Named 'Factor_Analyzer' - Python Notebook [Closed]

I am trying to import this module "FactorAnalyzer" for EFA (Exploratory Factor Analysis) using the code in a Notebook session (IBM Watson Studio Notebook):

from factor_analyzer import FactorAnalyzer

And I am getting the error:

ModuleNotFoundError: No module named 'factor_analyzer'

If it was occurring in my localhost, I probably would solve it by just typing pip install factor_analyzer in the terminal.

But I see no terminal in the Notebook and don't know how to proceed.

Hope my question is clear. Thanks.

1

You can do !pip install factor_analyzer before importing the same. Then notebook will install it if it is available in pip package.

PS: I wrote this because you said if, in the terminal, you would have done pip install factor_analyzer to solve this

1
Sarah Jenkins

Sarah Jenkins

Senior Technology Editor & AI Specialist

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.

Share this article
Twitter Facebook Pinterest