当前位置: 首页 > 工具软件 > iTorch > 使用案例 >

[ubuntu 16.04] install torch, itorch, jupyter

羊新翰
2023-12-01

[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/.ipythonsudochownR USER (dirname (ipython locate profile))

test

itorch notebook

 类似资料: