torch7安裝


按照官網進行安裝即可;(http://torch.ch/docs/getting-started.html#_)

# in a terminal, run the commands WITHOUT sudo git clone https://github.com/torch/distro.git ~/torch --recursive cd ~/torch; bash install-deps; ./install.sh

最后會提問是否將torch加入路徑,選yes

 

手動加入路徑,選以下其中之一(ubuntu14.04,選擇bashrc)

# On Linux with bash source ~/.bashrc # On Linux with zsh source ~/.zshrc # On OSX or in Linux with none of the above. source ~/.profile

檢查是否安裝成功:終端輸入th,顯示

即為成功。

 

然后可以安裝一些附加項:

# run luarocks WITHOUT sudo $ luarocks install image #例如要安裝image插件 $ luarocks list #查看都按裝了那些項

注:在安裝itorch時(終端執行:luarocks install itorch)出了問題

顯示沒有openssl

安裝openssl(終端執行:sudo apt-get install openssl)后,安裝itorch還是失敗,

顯示路徑下沒有openssl/evp.h文件,各種百度后發現是缺少一個libssl庫:安裝:sudo apt-get install libssl-dev

再次安裝itorch(終端執行:luarocks install itorch):成功。

使用時直接終端輸入:itorch notebook  (這里之前已經安裝過ipython notebook)

 

 

 (查看openssl版本及路徑:openssl version -a)

libssl-dev包含libraries, header files and manpages,他是openssl的一部分,而openssl對ssl進行了實現


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM