pip install torch==0.4.0 -f https://download.pytorch.org/whl/cu90/stable works for me. If this gives you an error that means that no binary exist for your version of python which is possible as we did not have that many builds back then.