hatch new "Hatch Demo"
cd hatch-demo在pyproject.toml中,我设置了:
requires-python = ">=3.9,<3.10"我跑:
hatch env create我得到:
ERROR: Package 'hatch-demo' requires a different Python: 3.10.5 not in '<3.10,>=3.9'我通过Homebrew安装了Python3.9和3.10。Python 3.9.13设置为默认设置。
python3 --version
Python 3.9.13如何解决这个问题,以便Hatch在为该项目创建环境时使用Python3.9.x?
发布于 2022-07-30 12:50:04
您可以尝试强制执行hatch的python解释器(我希望它随后用于env),如下所示:
/full/path/to/python.310 -m hatch env createhttps://stackoverflow.com/questions/72851876
复制相似问题