JasonKessler / scattertext

Beautiful visualizations of how language differs among document types.
Apache License 2.0
2.23k stars 289 forks source link

Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '/Users/lmcquillan/anaconda3/lib/python3.7/site-packages/pandas-0.25.1.dist-info/METADATA' #45

Closed LizMcQuillan closed 4 years ago

LizMcQuillan commented 4 years ago

I'm using a Mac, running Python 3.7. Following the install instructions, using pip install scattertext, I get this error.

Error:

No metadata found in ./anaconda3/lib/python3.7/site-packages
Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '/Users/lmcquillan/anaconda3/lib/python3.7/site-packages/pandas-0.25.1.dist-info/METADATA'

Full traceback:

Collecting scattertext
  Downloading https://files.pythonhosted.org/packages/9a/08/d6869cc9e8496afbb3f1c27e8c229609a39c96125f36f31f8f9ada681338/scattertext-0.0.2.55-py3-none-any.whl (6.7MB)
    100% |████████████████████████████████| 6.7MB 4.3MB/s 
Requirement already satisfied: scipy in ./anaconda3/lib/python3.7/site-packages (from scattertext) (1.1.0)
Collecting scikit-learn (from scattertext)
  Using cached https://files.pythonhosted.org/packages/e9/57/8a9889d49d0d77905af5a7524fb2b468d2ef5fc723684f51f5ca63efed0d/scikit_learn-0.21.3-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Collecting mock (from scattertext)
  Downloading https://files.pythonhosted.org/packages/05/d2/f94e68be6b17f46d2c353564da56e6fb89ef09faeeff3313a046cb810ca9/mock-3.0.5-py2.py3-none-any.whl
Requirement already satisfied: six in ./anaconda3/lib/python3.7/site-packages (from scattertext) (1.12.0)
Collecting statsmodels (from scattertext)
  Using cached https://files.pythonhosted.org/packages/b5/b8/50f9b86bbd87b1de961f439c2b93dfc41dd0cb9d65f6b7d824b287b50b21/statsmodels-0.10.1-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Requirement already satisfied: pandas in ./anaconda3/lib/python3.7/site-packages (from scattertext) (0.25.1)
No metadata found in ./anaconda3/lib/python3.7/site-packages
Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '/Users/lmcquillan/anaconda3/lib/python3.7/site-packages/pandas-0.25.1.dist-info/METADATA'

My Environment: Platform: Darwin-18.7.0-x86_64-i386-64bit Python version: 3.7.3

JasonKessler commented 4 years ago

Not 100% sure why this would happen, but you might want to create a fresh virtual environment and install it there. It sounds like your pandas installation got corrupted somehow.

On Thu, Oct 10, 2019 at 10:09 AM Liz notifications@github.com wrote:

I'm using a Mac, running Python 3.7. Following the install instructions, using pip install scattertext, I get this error.

Error:

No metadata found in ./anaconda3/lib/python3.7/site-packages

Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '/Users/lmcquillan/anaconda3/lib/python3.7/site-packages/pandas-0.25.1.dist-info/METADATA'

Full traceback:

Collecting scattertext

Downloading https://files.pythonhosted.org/packages/9a/08/d6869cc9e8496afbb3f1c27e8c229609a39c96125f36f31f8f9ada681338/scattertext-0.0.2.55-py3-none-any.whl (6.7MB)

100% |████████████████████████████████| 6.7MB 4.3MB/s

Requirement already satisfied: scipy in ./anaconda3/lib/python3.7/site-packages (from scattertext) (1.1.0)

Collecting scikit-learn (from scattertext)

Using cached https://files.pythonhosted.org/packages/e9/57/8a9889d49d0d77905af5a7524fb2b468d2ef5fc723684f51f5ca63efed0d/scikit_learn-0.21.3-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl

Collecting mock (from scattertext)

Downloading https://files.pythonhosted.org/packages/05/d2/f94e68be6b17f46d2c353564da56e6fb89ef09faeeff3313a046cb810ca9/mock-3.0.5-py2.py3-none-any.whl

Requirement already satisfied: six in ./anaconda3/lib/python3.7/site-packages (from scattertext) (1.12.0)

Collecting statsmodels (from scattertext)

Using cached https://files.pythonhosted.org/packages/b5/b8/50f9b86bbd87b1de961f439c2b93dfc41dd0cb9d65f6b7d824b287b50b21/statsmodels-0.10.1-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl

Requirement already satisfied: pandas in ./anaconda3/lib/python3.7/site-packages (from scattertext) (0.25.1)

No metadata found in ./anaconda3/lib/python3.7/site-packages

Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '/Users/lmcquillan/anaconda3/lib/python3.7/site-packages/pandas-0.25.1.dist-info/METADATA'

My Environment: Platform: Darwin-18.7.0-x86_64-i386-64bit Python version: 3.7.3

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/JasonKessler/scattertext/issues/45?email_source=notifications&email_token=AACMMXHMC24RGUDAJKFCZ63QN5OTBA5CNFSM4I7PWFL2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HQ7ZIYQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACMMXHAVAXJIZR5YGDY5KDQN5OTBANCNFSM4I7PWFLQ .

JasonKessler commented 4 years ago

I tried to install Scattertext 0.0.2.55 in a fresh virtual environment and it worked fine. From another issue the requester filed (https://github.com/pandas-dev/pandas/issues/28902), it appears this stems from a corrupted pandas installation.