hatch
hatch copied to clipboard
“major.minor.micro” for requires-python gets no compatible Python distribution available
Hi there! I'm new to Hatch and excited about its potential for my workflows. I work in the video game industry, and a lot of my development time is spent inside DCCs (Maya, Houdini, etc.), where the Python version is already determined and locked.
I see Hatch possibly offering a "1-click" solution to setting up development environments for working with these tools, but I need to specify an exact version in the requires-python property. For example, Maya 2024 requires 3.10.8 exactly.
I've specified requires-python = "==3.10.8" in my pyproject.toml but when calling hatch shell I get the error...
Environment "default" is incompatible: no compatible Python distribution available
Should I be writing the requires-python line differently? Is there any other trick I can do, such as point it to that version if I've already pre-installed it on my machine?
Thanks!