modernmt
modernmt copied to clipboard
MMT470 install problem with torch version on Ubuntu 20.04 LTS
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.
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).