LxMLS / lxmls-toolkit

Machine Learning applied to Natural Language Processing Toolkit used in the Lisbon Machine Learning Summer School
Other
223 stars 215 forks source link

Problem when installing with pip #169

Closed juanmc2005 closed 4 years ago

juanmc2005 commented 4 years ago

Hello,

After creating a clean conda environment, doing pip install --editable . throws the following error :

Complete output (12 lines):
    Traceback (most recent call last):
      File "/home/.../lxmls-toolkit/setup.py", line 6, in <module>
        from pip._internal import download
    ImportError: cannot import name 'download'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/home/../lxmls-toolkit/setup.py", line 8, in <module>
        from pip.req import parse_requirements
    ModuleNotFoundError: No module named 'pip.req'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

I'm running python 3.6 and pip 20.0.2 (also tried python 3.7 and pip 20.1.1 with no success).

Should I downgrade to a specific pip version?

Thank you

ramon-astudillo commented 4 years ago

This should be now fixed, thanks @dcferreira

juanmc2005 commented 4 years ago

Thank you for the fix!

Just to point out that it is currently merged on master but the installation guide says to use the student branch. I cherry-picked the commit but it would probably be easier to merge it there as well.

ramon-astudillo commented 4 years ago

thanks again @juanmc2005 , this is now pushed to student as well