How to compile from tarball downloaded from github?

It may be a simple question. I downloaded the tarball from github releases page, however the tarball doesn’t work. How to make it work ?

(eee) [ pytorch-0.4.1]$ python setup.py install
fatal: not a git repository (or any of the parent directories): .git
running install
running build_deps
Could not find /home/liangstein/test_tarballs/4.1/pytorch-0.4.1/third_party/gloo/CMakeLists.txt
Did you run ‘git submodule update --init’?
(eee) [ pytorch-0.4.1]$ git submodule update --init
fatal: not a git repository (or any of the parent directories): .git
(eee) [ pytorch-0.4.1]$

I don’t think it would work. It probably is best to check out the git branch v0.4.1 and use that.
If you clone and then do
git checkout -b v0.4.1 origin/v0.4.1
should do the trick.
Then you can run the git submodule update --init as you suggested.

Best regards

Thomas

After I do
git checkout -b v0.4.1 origin/v0.4.1
and run
python setup.py install

However “pip list” shows the wrong torch version:
torch 0.5.0a0+a24163a

How does this happen?

That just means its legit :wink: :

Best regards

Thomas