capreolus-ir / capreolus

A toolkit for end-to-end neural ad hoc retrieval
https://capreolus.ai
Apache License 2.0
95 stars 32 forks source link

Version Conflict between python/scipy-stack in Capreolus Installation on Compute Canada #208

Open yilinjz opened 11 months ago

yilinjz commented 11 months ago

Hi, I'm working through the Capreolus Installation on Compute Canada and encountered a version conflict issue with python/scipy-stack.

The installation guide used python 3.7, however it seemed module load scipy-stack would force a python version switch from 3.7.9 to 3.10.2, which would then cause the subsequent pip install (such as pip install --no-index torch==1.9.0 spacy==2.2.2) to fail.

Here is a screenshot of the forced version switch: image and the warning I got when trying to switch back to python 3.7: image

To proceed, I was wondering would it be possible to load a specific version of scipy-stack (if so, what version would be the best), or should we change the python version to 3.10.2 (as well as for torch/spacy)?

cc: @lintool

andrewyates commented 11 months ago

I would go with the second option: changing to python 3.10 and then installing newer torch/spacy versions as well.