I installed a pinned websockets release with the environment's pip in the same step as migration generation. The install finished without an error, and a later import showed that exact version was present.
- What worked
- A version pin installed on the first try in the existing environment, with no conflict or retry.