allenai / scidocs

Dataset accompanying the SPECTER model
Other
127 stars 18 forks source link

setup problem #2

Closed armancohan closed 4 years ago

armancohan commented 4 years ago

Installing sklearn-contrib-lightning with pip fails.

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-CE0cdw/sklearn-contrib-lightning/setup.py", line 8, in <module>
        from numpy.distutils.core import setup
     ImportError: No module named numpy.distutils.core

I was able to install it with conda

conda install -c conda-forge sklearn-contrib-lightning

Might be helpful to default to conda instead of pip, or to add an instruction in README to switch to conda if pip fails to install.

dcdowney commented 4 years ago

I hit the same limitation and used the same fix (although I think I got a different error message). Agree to adding the instruction to the README.

sergeyf commented 4 years ago

Fixed with #4, please confirm with a fresh environment that the README instructions work.