allegro / allRank

allRank is a framework for training learning-to-rank neural models based on PyTorch.
Apache License 2.0
865 stars 119 forks source link

Getting started without Docker #54

Closed metin-akyol closed 1 year ago

metin-akyol commented 1 year ago

Is it possible to get started without Docker (technical issues with it)? Is it possible to run a pip install package? A lot of the import require for the library to be properly installed.

I have cloned the repo and run the usual:

pip install -r requirements.txt
python setup.py install

But the imports are still not working:

import allrank.models.losses as losses

OSError: [WinError 127] The specified procedure could not be found. Error loading "C:\Users\cramk\anaconda3\lib\site-packages\torch\lib\caffe2_detectron_ops.dll" or one of its dependencies.

metin-akyol commented 1 year ago

It appears it was the results of the wrong Python version, I upgraded to 3.10 (which might have upgraded numpy along with it) and that resolved the problem.