(原)luarocks更新某个模块

转载请注明出处:

http://www.cnblogs.com/darkknightzh/p/6424398.html

参考网址:

https://github.com/torch/nn/issues/974

https://github.com/brotchie/torch-ubuntu-gpu-ec2-install/issues/4

https://github.com/torch/cunn/issues/388

1. 更新nn

如果torch的某个模块需要更新的话,可以直接使用luarocks install moduleName进行重新安装。但是在更新nn时,提示

“unknown type name ptrdiff_t”

两个参考网址中均碰到了这个问题。

第一个参考网址最后说,先重新安装torch,在安装需要的模块。试了一下,成功了。

luarocks install torch

而后:

luarocks install nn

=====================================================================

170227更新:

2. 更新cunn

直接使用luarocks install cunn,提示下面的问题:

THCGenerateFloatTypes.h: No such file or directory

如参考网址3所示。该网址也提供了解决方法:需要重新安装cutorch(luarocks install cutorch),之后再安装cunn(luarocks install cunn)就可以了。

说明:其实刚才碰到了一个很诡异的问题,重新安装cutorch后,第一次安装cunn时失败了,第二次输入同样的命令,就成功了。。。

170227更新结束

170804更新:

如果在电脑使用了anaconda2后,安装torch,可能会提示:anaconda2/lib/libcurl.so.4: no version information available.

https://github.com/torch/torch7/issues/629中guopzhao指出,可以把anaconda2重命名一下,然后使用luarocks install torch来安装torch,之后再把anaconda2名字改回来就可以了。

170804更新结束

=====================================================================

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值