I'm new to Hatch, so this may just be a case of misuse. But it seems that "hatch run" is not loading the conda environment I created, from the prefix I specified.
This creates the conda environment in ../env/ successfully, but then I get this error on "hatch run":
EnvironmentLocationNotFound: Not a conda environment: /path-to-projects-folder/mypackage_default_3.9
That path is where the conda environment was initially being installed, before I added the "prefix" key to the TOML file above. For some reason, it still expects the conda environment to be there, rather than in ../env.
In summary, the expected behavior is that hatch loads the conda environment from the custom prefix we gave it, rather than from the old default location. Let me know if more details are needed.
I'm new to Hatch, so this may just be a case of misuse. But it seems that "hatch run" is not loading the conda environment I created, from the prefix I specified.
Excerpt from pyproject.toml:
This creates the conda environment in ../env/ successfully, but then I get this error on "hatch run":
That path is where the conda environment was initially being installed, before I added the "prefix" key to the TOML file above. For some reason, it still expects the conda environment to be there, rather than in ../env.
In summary, the expected behavior is that hatch loads the conda environment from the custom prefix we gave it, rather than from the old default location. Let me know if more details are needed.