Libopenmpi-dev: Depends:libiverbs-dev- Broken packages error while installing Pytorch v2.1.0

Hi,
I am getting below error, when installing Pytorch v2.1.0 on Jetson AGX Xavier Industrial on Linux-For-Tegra 35.4.1 on my customized carrier board.

This error occurs when executing the command:

 sudo apt-get install python-pip cmake libopenblas-dev libopenmpi-dev 

from the below link:

Pls let us know how to resolve this error, thanks.

Hi,

Could you check the document below to see if the steps can work?

Thanks.

This has steps with already prebuilt pytorch whl file for python 3.8.

But my requirement is pytorch has to be built on python 3.9, thats why I am building from sources as per the link I shared.

Note: before this i have installed cmake 3.22.0 by the steps provided by you earlier in the below link:

Hi,

Do you try to build it inside the container?
If so, could you try it on the device natively?

Thanks.

Could provide the link for the steps to be followed for this for python 3.9.

Thanks.

Hi,

The building steps should be the same inside or outside the container.
Thanks.

Solution:

this error did not occur when tried the steps second time from scratch.

only thing is for changing the python3 softlink from python3.8 to python3.9, I used the below steps:

$sudo ls /usr/bin/python*
$sudo rm /usr/bin/python3
$sudo ln -s /usr/bin/python3.9 /usr/bin/python3

instead of update-alternatives method;

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.