Issue
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.
Solution
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
Answered By - Nandu Raj
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.