Installed on a new machine. It seems to be using mistralai verison 1+ but the installer downloaded mistralai version 2+.
windows-use imports Mistral the old way:
from mistralai import Mistral
But mistralai v2.0.0 (released March 2026) moved that import to:
from mistralai.client import Mistral
When windows-use was installed, pip pulled in the latest mistralai (v2.x), which is now a PEP 420 namespace package — that's why the error says (unknown location). The package "exists" but Mistral isn't at the top level anymore.
windows-use.exe --provider ChatOpenRouter --model deepseek/deepseek-v4-flash-0731 --max-steps 40
Traceback (most recent call last):
File "<frozen runpy>", line 203, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\<user>\AppData\Local\Python\pythoncore-3.14-64\Scripts\windows-use.exe\__main__.py", line 2, in <module>
from windows_use.cli.__main__ import main
File "C:\Users\<user>\AppData\Local\Python\pythoncore-3.14-64\Lib\site-packages\windows_use\__init__.py", line 1, in <module>
from windows_use.agent import (
...<8 lines>...
)
File "C:\Users\<user>\AppData\Local\Python\pythoncore-3.14-64\Lib\site-packages\windows_use\agent\__init__.py", line 10, in <module>
from windows_use.agent.service import Agent
File "C:\Users\<user>\AppData\Local\Python\pythoncore-3.14-64\Lib\site-packages\windows_use\agent\service.py", line 13, in <module>
from windows_use.agent.context import Context
File "C:\Users\<user>\AppData\Local\Python\pythoncore-3.14-64\Lib\site-packages\windows_use\agent\context\__init__.py", line 1, in <module>
from .service import Context
File "C:\Users\<user>\AppData\Local\Python\pythoncore-3.14-64\Lib\site-packages\windows_use\agent\context\service.py", line 19, in <module>
from windows_use.providers import BaseChatLLM, TokenUsage
File "C:\Users\<user>\AppData\Local\Python\pythoncore-3.14-64\Lib\site-packages\windows_use\providers\__init__.py", line 25, in <module>
from windows_use.providers.mistral import ChatMistral
File "C:\Users\<user>\AppData\Local\Python\pythoncore-3.14-64\Lib\site-packages\windows_use\providers\mistral\__init__.py", line 1, in <module>
from windows_use.providers.mistral.llm import ChatMistral as ChatMistral
File "C:\Users\<user>\AppData\Local\Python\pythoncore-3.14-64\Lib\site-packages\windows_use\providers\mistral\llm.py", line 7, in <module>
from mistralai import Mistral
ImportError: cannot import name 'Mistral' from 'mistralai' (unknown location)
Installed on a new machine. It seems to be using mistralai verison 1+ but the installer downloaded mistralai version 2+.
windows-use imports Mistral the old way:
from mistralai import Mistral
But mistralai v2.0.0 (released March 2026) moved that import to:
from mistralai.client import Mistral
When windows-use was installed, pip pulled in the latest mistralai (v2.x), which is now a PEP 420 namespace package — that's why the error says (unknown location). The package "exists" but Mistral isn't at the top level anymore.