TRI-ML / prismatic-vlms

A flexible and efficient codebase for training visually-conditioned language models (VLMs)
MIT License
425 stars 194 forks source link

Fix for error: "File setup.py not found" when running "pip install -e ." #23

Closed SamuelSchmidgall closed 5 months ago

SamuelSchmidgall commented 5 months ago

If you get the following error when running pip install -e . then

ERROR: File "setup.py" not found. Directory cannot be installed in editable mode: /cis/home/sschmi46/medvlm/prismatic-vlms (A "pyproject.toml" file was found, but editable mode currently requires a setup.py based build.)

You can fix it with the following:

python -m pip install --upgrade pip
pip install --upgrade setuptools
pip install -e .