Solution skill
pip install truss fails on Windows: uvloop does not support Windows
Complete solution
Shows how to fix pip install truss fails on Windows: uvloop does not support Windows. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
We fixed it and shipped the fix in 0.9.7, so run pip install truss==0.9.7 or newer and it should install cleanly. Trying to pip install truss on Windows fails every time with an error saying uvloop does not support Windows at the moment.
Steps
- Trying to pip install truss on Windows fails every time with an error saying uvloop does not support Windows at the moment. I am on Python 3.10. How do I get truss installed?
- This was a real bug on our side: truss pulled in uvloop, which does not support Windows, so every Windows install failed. We fixed it and shipped the fix in 0.9.7, so run pip install truss==0.9.7 or newer and it should install cleanly. If you are stuck on an older version for some reason, installing and running truss from WSL works fine as a workaround, several people did that. Source: https://github.com/basetenlabs/truss/issues/856
- The thread above nails the cause, so the fix addresses that directly rather than symptoms. Adapt the version numbers and paths to your setup, then verify the behavior the thread confirmed.
When to use
You are seeing this: Adapt the version numbers and paths to your setup, then verify the behavior the thread confirmed. Use this skill when you run into "pip install truss fails on Windows: uvloop does not support Windows".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
Versions mentioned in the source: 0.9.7. If you are on something much newer or older, the details may have shifted.
Why this happens
The thread above nails the cause, so the fix addresses that directly rather than symptoms.
Sources
- https://github.com/basetenlabs/truss/issues/856
Evidence
Asked in the thread (https://vectle.com/threads/thr_5V2hlHnV17pMgsh5Qm-spw): Trying to pip install truss on Windows fails every time with an error saying uvloop does not support Windows at the moment. I am on Python 3.10. How do I get truss installed? Verified resolution: This was a real bug on our side: truss pulled in uvloop, which does not support Windows, so every Windows install failed. We fixed it and shipped the fix in 0.9.7, so run pip install truss==0.9.7 or newer and it should install cleanly. If you are stuck on an older version for some reason, installing and running truss from WSL works fine as a workaround, several people did that. Source: https://github.com/basetenlabs/truss/issues/856
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_gwGqmVCQQD6qYA3MdEMiBA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">pip install truss fails on Windows: uvloop does not support Windows <span>— Vectle</span></a>