jalammar / ecco

Explain, analyze, and visualize NLP language models. Ecco creates interactive visualizations directly in Jupyter notebooks explaining the behavior of Transformer-based language models (like GPT2, BERT, RoBERTA, T5, and T0).
https://ecco.readthedocs.io
BSD 3-Clause "New" or "Revised" License
1.96k stars 167 forks source link

installing ecco #111

Open shahramzs opened 7 months ago

shahramzs commented 7 months ago

i'm trying to install ecco in google colab but it get an error:

Collecting ecco Using cached ecco-0.1.2-py2.py3-none-any.whl (70 kB) Requirement already satisfied: transformers~=4.2 in /usr/local/lib/python3.10/dist-packages (from ecco) (4.35.2) Requirement already satisfied: seaborn~=0.11 in /usr/local/lib/python3.10/dist-packages (from ecco) (0.13.1) Collecting scikit-learn~=0.23 (from ecco) Using cached scikit-learn-0.24.2.tar.gz (7.5 MB) Installing build dependencies ... done Getting requirements to build wheel ... done error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip. Preparing metadata (pyproject.toml) ... error error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details.

csuncodes commented 6 months ago

Hello, I am having the same error for "pip install ecco" It seems to be crashing when downloading the particular version of Scikit-learn? Error in pip install:
× Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [1437 lines of output]

:17: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html Partial import of sklearn during the build process. Additionally, I could not install ecco via the "conda install -c conda-forge ecco" either. It seems to tell me that my versions are incorrect? Error in conda install: UnsatisfiableError: The following specifications were found to be incompatible with each other: Output in format: Requested package -> Available versionsThe following specifications were found to be incompatible with your system: - feature:/osx-arm64::__osx==13.5=0 - feature:/osx-arm64::__unix==0=0 - feature:|@/osx-arm64::__osx==13.5=0 - feature:|@/osx-arm64::__unix==0=0 - ecco -> ipython -> __linux - ecco -> ipython -> __osx - ecco -> ipython -> __unix Your installed version is: 0 I am working of a Mac M2 and have Mac OS 13.5 Any help would be appreciated.
StarVolcano commented 6 months ago

Hi, @csuncodes I met the same problem. And I think the problem is that in your current environment (macOS with arm64), there is no .whl package for scikit-learn==0.24.2 in Pypi. So pip needs to download the source code and compile it to install.

Since it is difficult for m to solve the compiling problem, after checking the existing package in Pypi, I decide to solve this problem by creating python=3.8 environment through conda on a linux machine.

I install ecco successfully towards this approach. Maybe you can have a try. Hope it helps.

Best, Volcano