Closed Josenorte closed 4 years ago
It looks like you may not have scattertext installed in your virtual environment. I’d run pip3 install -U scattertext and retry.
looks like all OK ?
(base) MacBook-Jose-2:~ jnorte$ pip3 install -U scattertext Requirement already up-to-date: scattertext in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (0.0.2.65) Requirement already satisfied, skipping upgrade: six in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from scattertext) (1.15.0) Requirement already satisfied, skipping upgrade: pandas in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from scattertext) (1.0.4) Requirement already satisfied, skipping upgrade: statsmodels in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from scattertext) (0.11.1) Requirement already satisfied, skipping upgrade: mock in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from scattertext) (4.0.2) Requirement already satisfied, skipping upgrade: numpy in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from scattertext) (1.18.5) Requirement already satisfied, skipping upgrade: scikit-learn in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from scattertext) (0.23.1) Requirement already satisfied, skipping upgrade: scipy in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from scattertext) (1.4.1) Requirement already satisfied, skipping upgrade: python-dateutil>=2.6.1 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from pandas->scattertext) (2.8.1) Requirement already satisfied, skipping upgrade: pytz>=2017.2 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from pandas->scattertext) (2020.1) Requirement already satisfied, skipping upgrade: patsy>=0.5 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from statsmodels->scattertext) (0.5.1) Requirement already satisfied, skipping upgrade: joblib>=0.11 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from scikit-learn->scattertext) (0.15.1) Requirement already satisfied, skipping upgrade: threadpoolctl>=2.0.0 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from scikit-learn->scattertext) (2.1.0)
Are you still the same error?
On Wed, Jun 10, 2020 at 4:22 PM Josenorte notifications@github.com wrote:
looks like all OK ?
(base) MacBook-Jose-2:~ jnorte$ pip3 install -U scattertext Requirement already up-to-date: scattertext in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (0.0.2.65) Requirement already satisfied, skipping upgrade: six in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from scattertext) (1.15.0) Requirement already satisfied, skipping upgrade: pandas in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from scattertext) (1.0.4) Requirement already satisfied, skipping upgrade: statsmodels in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from scattertext) (0.11.1) Requirement already satisfied, skipping upgrade: mock in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from scattertext) (4.0.2) Requirement already satisfied, skipping upgrade: numpy in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from scattertext) (1.18.5) Requirement already satisfied, skipping upgrade: scikit-learn in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from scattertext) (0.23.1) Requirement already satisfied, skipping upgrade: scipy in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from scattertext) (1.4.1) Requirement already satisfied, skipping upgrade: python-dateutil>=2.6.1 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from pandas->scattertext) (2.8.1) Requirement already satisfied, skipping upgrade: pytz>=2017.2 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from pandas->scattertext) (2020.1) Requirement already satisfied, skipping upgrade: patsy>=0.5 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from statsmodels->scattertext) (0.5.1) Requirement already satisfied, skipping upgrade: joblib>=0.11 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from scikit-learn->scattertext) (0.15.1) Requirement already satisfied, skipping upgrade: threadpoolctl>=2.0.0 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from scikit-learn->scattertext) (2.1.0)
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/JasonKessler/scattertext/issues/61#issuecomment-642316995, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACMMXAVFVDK6A2SCGAFZNLRWAISNANCNFSM4N2Y3RTA .
Yes :( same error
ModuleNotFoundError Traceback (most recent call last)
You may want to make sure your notebook is running in the correct virtual environment, and you’re using the pip command belonging to that environment
On Thu, Jun 11, 2020 at 7:40 AM Josenorte notifications@github.com wrote:
Yes :( %matplotlib inline import scattertext as st import re, io from pprint import pprint import pandas as pd import numpy as np from scipy.stats import rankdata, hmean, norm import spacy import os, pkgutil, json, urllib from urllib.request import urlopen from IPython.display import IFrame from IPython.core.display import display, HTML from scattertext import CorpusFromPandas, produce_scattertext_explorer display(HTML(""))
ModuleNotFoundError Traceback (most recent call last) in 1 get_ipython().run_line_magic('matplotlib', 'inline') ----> 2 import scattertext as st 3 import re, io 4 from pprint import pprint 5 import pandas as pd
ModuleNotFoundError: No module named 'scattertext'
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/JasonKessler/scattertext/issues/61#issuecomment-642702285, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACMMXCZJPTB57GBUFGVHZTRWDUE7ANCNFSM4N2Y3RTA .
ModuleNotFoundError Traceback (most recent call last)