⚠️ Notice: Limited Maintenance
This project is no longer actively maintained. While existing releases remain available, there are no planned updates, bug fixes, new features, or security patches. Users should be aware that vulnerabilities may not be addressed.
TorchServe on Windows Subsystem for Linux (WSL)
Ubuntu 18.0.4
Contents of this Document
Setup Ubuntu 18.0.4 on WSL:
Install from binaries
Setup Ubuntu Environment
wget -O - https://raw.githubusercontent.com/pytorch/serve/master/ts_scripts/setup_wsl_ubuntu | bash
echo 'export PATH=$HOME/.local/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
Install JDK 17
sudo apt-get install openjdk-17-jdk
Install Dependencies
pip install torch torchtext torchvision sentencepiece psutil
pip install torchserve torch-model-archiver
Install from source
Clone and install TorchServe
git clone https://github.com/pytorch/serve.git
cd serve
./ts_scripts/setup_wsl_ubuntu
export PATH=$HOME/.local/bin:$PATH
python ./ts_scripts/install_from_src.py
echo 'export PATH=$HOME/.local/bin:$PATH' >> ~/.bashrc
source ~/.bashrc