[ubuntu 16.04] install torch, itorch, jupyter

来源:互联网 发布:手机总是弹出淘宝页面 编辑:程序博客网 时间:2024/06/18 17:56

[ubuntu 16.04] install torch, itorch, jupyter

install ipython

sudo apt-get update
sudo apt-get upgrade

sudo apt-get install python3-pip
sudo pip3 install –upgrade pip

sudo -H pip3 install ipython
sudo -H pip3 install ipython –upgrade

install jupyter

sudo -H pip3 install jupyter
sudo -H pip3 install jupyter –upgrade

install torch

sudo apt install git
git clone https://github.com/torch/distro.git ~/torch –recursive
cd ~/torch; bash install-deps;
./install.sh
source ~/.bashrc

install itorch

sudo apt-get install libzmq3-dev libssl-dev python3-zmq
git clone https://github.com/facebook/iTorch.git
cd iTorch/
sudo env “PATH=$PATH” luarocks make
(ignore echo “Error: could not find ipython in PATH. Do you have it installed?”)

sudo chown -R USER:USER /home/USER/.ipythonsudochownRUSER (dirname(ipython locate profile))

test

itorch notebook

0 0
原创粉丝点击