No module named inference when trying to use Python InferencePipeline

I’m trying to follow some of the instructions here, specifically the InferencePipeline quickstart:

I ran “pip install inference” and it completed without errors.

In my project I have:
from inference import InferencePipeline

This is erroring out with:
ModuleNotFoundError: No module named ‘inference’

Am I missing a module?

Hi @LouNL ,

Can you share what version of Python you are trying to utilize? Currently inference is supporting following Python versions: 3.9, 3.10, 3.11, 3.12

That pip install didn’t appear to install any modules named inference.

It is possible pip encountered errors when installing inference. Can you post full pip output when running pip install inference?

Thanks,
Grzegorz

Hi Grzegorz, thanks. It’s Python3. I tried it again on an Ubuntu VM, and that one is working for me. I think it’s my own Python windows install.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.