Httpstan in WSL2 Ubuntu

I am trying to install httpstan in Windows 10 running Ubuntu 20.04 under WSL2. I am trying to install from source using the instructions here: Installation — httpstan 4.5.0 documentation

But the instructions are incomplete. First line is install poetry. Done. Then make. But where? Then there’s “python3 -m pip install dist/*.whl” but shouldn’t there be instructions of what I need to download first.

I would like to request someone who has managed to install httpstan 4.5.0 on Windows 10 WSL2 Ubuntu to share how to do it. Thanks very much.

  • Operating System: Win10 WSL2 Ubuntu
  • Python Version: Python3.8 in a venv
  • PyStan Version: 4.5.0 (hopefully)
  • Compiler/Toolkit: Installed gcc 9.3.0


First install compiler (you have probably done this already) and git tools

sudo apt update
sudo apt install build-essential git

Install poetry

python3 -m pip install poetry

Then clone the repository (you can replace URL with your fork if needed) and go to cloned folder

git clone
cd httpstan

Build Stan libraries (change -jN based on how many cores you want to use)

make -j4

Build with poetry

poetry build -v

Install build wheel

python3 -m pip install dist/*.whl
1 Like

Hi Ari,

Thank you so much. I have PyStan 3.2 working on Windows10 WSL2 Ubuntu. Just one additional question. I only succeeded in installing httpstan for the root Python distro. Try as I might, I cannot get it installed in a venv. The error message I get is:
ERROR: httpstan-4.5.0-cp38-cp38-manylinux_2_31_x86_64.whl is not a supported wheel on this platform.

Is there some additional instruction missing from the above? I did “source myvenv/bin/activate” first. Thanks again.

Is your venv python 3.8?

edit. Also make sure you have updated your pip in the venv.

Thanks Ari. Yes, I am using Python 3.8 and updating the pip in the venv works!