首先参考官网的命令在终端输入
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://