Pytorch installing error

how to install pytorch 0.1.12 in anaconda 3.6 windows 10?

It is too old. Please install 0.4.1 instead.

the code for self driving car requires the old version

Does it rely on a specific feature? I don’t think there is any difficulty to port these code to the latest version. However, if you stick to use the legacy package, it could be found out here. But I have to warn you that these packages are not fully tested and may not work under certain conditions. Use them with caution!

while using the latest version it says multinomial error(num_samples).If we try fixing this error replacing with distribution.categorical function it throws an error with importing a module nan(import nan missing).

Is it possible to paste some reproducible code here, so that we can take a look?