Downloading spacy ray in an anaconda virtual environment on linux

Viewed 267

I'm trying to download spacy ray for spacy v3.0. I want to this within a conda virtual environment where I have spacy v3.0 and other dependencies. I can't figure out how to download it. I tried conda install spacy-ray and conda install -c conda-forge spacy-ray. These said no such module found. Then I gave up and tried pip install spacy-ray but that gave me the following message:

ERROR: Cannot install spacy-ray==0.0.0, spacy-ray==0.1.0 and spacy-ray==0.1.1 because these package versions have conflicting dependencies.

The conflict is caused by:
    spacy-ray 0.1.1 depends on ray<1.0.0 and >=0.8
    spacy-ray 0.1.0 depends on ray<1.0.0 and >=0.8
    spacy-ray 0.0.0 depends on ray<1.0.0 and >=0.8

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies

conda install -c conda-forge spacy[ray] installed something called openssl. No spacy ray though.

I also tried: (with my environment active):

conda install git pip

pip install git+git://github.com/explosion/spacy-ray.git@master

To which it said:

ERROR: Could not find a version that satisfies the requirement ray<1.0.0,>=0.8 (from spacy-ray)
ERROR: No matching distribution found for ray<1.0.0,>=0.8

How would I do this properly?

1 Answers

This seems to be a known issue with PyPi and the Ray project https://github.com/ray-project/ray/issues/5444 or with the Python 3.7.4 binaries in Anaconda environments https://github.com/ContinuumIO/anaconda-issues/issues/11195#issuecomment-521052981

The issue is closed and states that it was fixed but I managed to reproduce your problem using Python 3.7.4

The solution suggests using Python 3.7.3 instead.

conda create -n ray python=3.7.3

pip install -U spacy-ray should work in the environment with Python 3.7.3.

Related