How to update pytorch to new version?

In the website, using pip to install pytorch is still
"pip install ", that means the version is 0.1.12.

And in the other side, if I use source code to install pytorch, how to update it? Making the new source code means update the version?

Maybe this answer pytorch source update can be referenced.