安装csvigo之前必须安装Torch
$ git clone https://github.com/torch/distro.git ~/torch --recursive
$ cd ~/torch
# clean old torch installation
$ ./clean.sh
# optional clean command (for older torch versions)
# curl -s https://raw.githubusercontent.com/torch/ezinstall/master/clean-old.sh | bash
# https://github.com/torch/distro : set env to use lua
#以lua53的方式安装
$ TORCH_LUA_VERSION=LUA53 ./install.sh
# 让环境变量起作用
$ source ~/.bashrc
# Important!!
$ sudo chown -R $(whoami) ~/.cache
$ luarocks install csvigo