Installed module pysubgroup not found in Jupyter Notebook [closed]
Question
I'm trying to use the pysubgroup python package referenced here.
I think I properly installed it as shown below, with no errors when I installed it:
> mymacs-MacBook-Pro:dq-pattern-research mymac$ pip3 search pysubgroup
> pysubgroup (0.5.4) - pysubgroup is a Python library for the data
> analysis
> task of subgroup discovery. INSTALLED: 0.5.4 (latest) mymacs-MacBook-Pro:dq-pattern-research mymac$ pip3 install
> pysubgroup Requirement already satisfied: pysubgroup in
> /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages
> (0.5.4) Requirement already satisfied: pandas in
> /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages
> (from pysubgroup) (0.23.4) Requirement already satisfied: scipy in
> /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages
> (from pysubgroup) (1.1.0) Requirement already satisfied: numpy in
> /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages
> (from pysubgroup) (1.15.1) Requirement already satisfied: matplotlib
> in
> /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages
> (from pysubgroup) (2.2.3) Requirement already satisfied: pytz>=2011k
> in
> /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages
> (from pandas->pysubgroup) (2018.5) Requirement already satisfied:
> python-dateutil>=2.5.0 in
> /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages
> (from pandas->pysubgroup) (2.7.3) Requirement already satisfied:
> cycler>=0.10 in
> /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages
> (from matplotlib->pysubgroup) (0.10.0) Requirement already satisfied:
> kiwisolver>=1.0.1 in
> /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages
> (from matplotlib->pysubgroup) (1.0.1) Requirement already satisfied:
> six>=1.10 in
> /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages
> (from matplotlib->pysubgroup) (1.11.0) Requirement already satisfied:
> pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in
> /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages
> (from matplotlib->pysubgroup) (2.2.0) Requirement already satisfied:
> setuptools in
> /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages
> (from kiwisolver>=1.0.1->matplotlib->pysubgroup) (39.0.1)
But when I try to access it via jupyter notebook in Safari on Mac I get an error that it can't be found:
import pysubgroup as ps import pandas as pd
--------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) in ----> 1 import pysubgroup as ps 2 import pandas as pd
ModuleNotFoundError: No module named 'pysubgroup'
I also can see that it is installed in a notebook: [![
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with datascience.stackexchange