首先參考官網的指令在終端輸入
git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch; bash install-deps;
之前都沒有問題,之後得到如下錯誤:
Error: Package 'python-software-properties' has no installation candidate
解決辦法:
用vim 打開 install-deps檔案
将sudo apt-get install python-software-properties替換成
sudo apt-get install -y software-properties-common之後儲存。
繼續參照官網安裝遇到一個錯誤fix 相關問題
在終端中輸入sudo apt --fix-broken install python-pycurl python-apt
最後安裝完成。
使用luarocks install指令安裝image,nn 遇到下列錯誤
fatal: read error: Connection reset by peer
Error: Failed cloning git repository.
解決方法:
終端輸入:git config --global url."https://".insteadOf git://