OpenDriveVLA
OpenDriveVLA copied to clipboard
Error when executing `pip install -e ".[train]"`
Hi, in the Environment Setup doc,
when I executed the command in step 1: I got the following error:
pip install -e ".[train]"
ERROR: Project file:///home/goro/OpenDriveVLA has a 'pyproject.toml' and its build backend is missing the 'build_editable' hook. Since it does not have a 'setup.py' nor a 'setup.cfg', it cannot be installed in editable mode. Consider using a build backend that supports PEP 660.
Another question is:
Why did you have two numpy in your "[train]" in pyproject.toml?
train = [
"llava[standalone]",
"numpy==1.26.1",
"open_clip_torch",
"fastapi",
"gradio==3.35.2",
"markdown2[all]",
"numpy",
"requests",
"sentencepiece",
"torch==2.1.2",
"torchvision==0.16.2",
"uvicorn",
"wandb",
"deepspeed==0.14.2",
"peft==0.4.0",
"accelerate==0.29.3",
"tokenizers~=0.15.2",
"transformers@git+https://github.com/huggingface/transformers.git@1c39974a4c4036fd641bc1191cc32799f85715a4",
"flash-attn==2.5.7",
"bitsandbytes==0.41.0",
"scikit-learn==1.2.2",
"sentencepiece~=0.1.99",
"einops==0.6.1",
"einops-exts==0.0.4",
"gradio_client==0.2.9",
"urllib3<=2.0.0",
"datasets==2.16.1",
"pydantic==1.10.8",
"timm",
"hf_transfer",
"opencv-python",
"av",
"decord",
"tyro",
"scipy",
"pytorch-lightning==1.2.5",
"torchmetrics==0.11.4",
]
Could you share some insights about how to fix this error? Thanks.
In my case, I fixed by commenting numpy, torch, torchvision, flash-attn. First, I installed torch family separately. Second, I used the command pip install -e ".[train]" --no-build-isolation Third, I installed flash-attn (using whl) separately to avoid looooong build time. (I tried to find prebuilt whl in flash-attn repository)