安裝torch環境可以參考:
https://blog.csdn.net/zhangxin4832/article/details/79219192
https://blog.csdn.net/xiaozhun07/article/details/49865785
torch.ch/docs/getting-started.html
出現Package python-software-properties is not available錯誤可以參考:
https://askubuntu.com/questions/1087284/package-python-software-properties-is-not-available
爲了避免上面網站不存在我複製下來了關鍵的回答部分
Open the "install-deps" file in Torch folder. Go to the line 178. Change sudo apt-get install -y python-software-properties
to sudo apt-get install -y software-properties-common