Closed smallduan closed 2 months ago
I also try to install the torch1.12.1 cpu by myself, but it still failed
Hi @smallduan, thanks for reporting the issue. I assume you are working with a fairly recent OS version, e.g., Ubuntu 24.04? Switching to a newer version of the PyTorch Python package will introduce a version conflict with the C++ frontend (libTorch). So, to run drlFoam with a newer version of PyTorch you need to:
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
if [ ! -d $DRL_TORCH ];
then
echo "Could not find libTorch dependencies. Downloading libTorch to ${DRL_TORCH}"
wget https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-2.3.1%2Bcpu.zip && \
unzip libtorch-cxx11-abi-shared-with-deps-2.3.1+cpu.zip
rm libtorch-cxx11-abi-shared-with-deps-2.3.1+cpu.zip
fi
Please let me know if this works for you. Best, Andre
Hi Thank you, It works for me.
Hi While I am configuring my pyhon environment, I am facing problem, it shows that pytorch doesn't contain this version of package anymore, if I can install oter version instead?![image](https://github.com/AndreWeiner/ml-cfd-lecture/assets/52167150/dd7ed45d-015f-4f91-918b-4263b53c8841)