How can i share my pytorch project in different Linux distro

Now i have two linux machine, but they have different linux distro. One is Ubuntu, another is Centos. They share one same pytorch project. How can i run pytorch in different machine using the same code. I failed because of the different dependency location of the two dirstro.