Saved from https://qiita.com/sakaia/items/c57ccb451ebeac01779f
!pip3 install ninja !git clone -b v1.0.0 --recursive http://github.com/pytorch/pytorch !cd pytorch; export NO_CUDA=1;python3 setup.py build develop