modernmt icon indicating copy to clipboard operation
modernmt copied to clipboard

MMT470 install problem with torch version on Ubuntu 20.04 LTS

Open EtienneAb3d opened this issue 3 years ago • 1 comments

Hi, When trying to install the latest release, torch 1.3.0 is not found. The nearest version available is 1.4.0. Changing torch==1.3.0 to torch==1.4.0 in requirements.txt seems to be sufficient. I didn't try with a more recent version.

EtienneAb3d avatar Jan 21 '21 11:01 EtienneAb3d

I still have this problem (being now with Ubuntu 21), but the above solution is no more working: Torch is now available in versions at least 1.7.1, and I get something like a Float can't be cast to the desired output type Long somewhere in the LOGs.

I found that the good solution is to enforce the use of Python 3.6 using a conda virtual env:

conda create --prefix ./venvMMT python=3.6
conda activate ./venvMMT

Now, the python setup.py can be run (in my case, I kept torch==1.4.0, since I know it is working).

EtienneAb3d avatar Sep 15 '21 16:09 EtienneAb3d