mindspore-lab / mindone

one for all, Optimal generator with No Exception
https://mindspore-lab.github.io/mindone/
Apache License 2.0
366 stars 71 forks source link

ERROR: File "setup.py" not found. #745

Open qhzhuang opened 1 week ago

qhzhuang commented 1 week ago

以编辑模式安装mindone执行pip install -e .时报错ERROR: File "setup.py" not found. 主要是pip版本较老, 升级pip后解决

townwish4git commented 2 days ago

Copied from https://stackoverflow.com/questions/69711606/how-to-install-a-package-using-pip-in-editable-mode-with-pyproject-toml/69711730#69711730:

PEP 660 – Editable installs for pyproject.toml based builds defines how to build projects that only use pyproject.toml. Build tools must implement PEP 660 for editable installs to work. You need a front-end (such as pip ≥ 21.3) and a backend. The statuses of some popular backends are:

Note: To be able to do an editable installation to your user site (pip install -e --user), you need a system installed setuptools v62.0.0 or newer.