在linux上的anaconda虚拟环境中下载spacy-ray



我正在尝试为spacy v3.0下载spacy ray。我想在conda虚拟环境中这样做,在那里我有spacy v3.0和其他依赖项。我不知道怎么下载。我试过conda install spacy-rayconda install -c conda-forge spacy-ray。他们说没有找到这样的模块。然后我放弃了,尝试pip安装spacy ray,但这给了我以下信息:

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]安装了一种名为openssl的东西。不过没有空间光线。

我还尝试过:(在我的环境处于活动状态的情况下(:

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

对此:

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

我该如何正确地做到这一点?

这似乎是PyPi和Ray项目的已知问题https://github.com/ray-project/ray/issues/5444或者使用Anaconda环境中的Python 3.7.4二进制文件https://github.com/ContinuumIO/anaconda-issues/issues/11195#issuecomment-521052981

这个问题已经结束,并声明它已经修复,但我设法使用Python 3.7.4 重现了您的问题

解决方案建议使用Python 3.7.3。

conda create -n ray python=3.7.3

pip install -U spacy-ray应该在Python 3.7.3的环境中工作。

最新更新