4
0
mirror of https://github.com/nerfstudio-project/nerfstudio.git synced 2026-11-11 10:34:29 +08:00

FAQ addition: upgrade pip if pip install doesn't work. (#377)

* added pip upgrade to readme, quickstart, removed setup.py step in docs
This commit is contained in:
Alexander Kristoffersen 2022-09-09 10:27:21 -07:00 committed by GitHub
parent 6b2485d166
commit 2cda340e05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 6 deletions

View File

@ -73,6 +73,7 @@ git clone git@github.com:plenoptix/nerfactory.git
# Install dependencies and nerfactory as a library
cd nerfactory
python -m pip install --upgrade pip
pip install -e .
# Install tiny-cuda-nn (tcnn) and apex to use with the graph_instant_ngp.yaml config

View File

@ -34,15 +34,10 @@ git clone git@github.com:plenoptix/nerfactory.git
Install dependencies and nerfactory as a library
```bash
python -m pip install --upgrade pip
pip install -e .
```
Install library with CUDA development support. Change setup.py to `USE_CUDA = True` and then
```bash
python setup.py develop
```
Install tiny-cuda-nn (tcnn) to use with the graph_instant_ngp.yaml config
```bash
@ -122,3 +117,16 @@ While installing tiny-cuda, you run into: `The detected CUDA version mismatches
```
pip install torch==1.11.0+cu113 torchvision==0.12.0+cu113 -f https://download.pytorch.org/whl/torch_stable.html
```
* [Installation errors, File "setup.py" not found](pip-install-error)
(pip-install-error)=
#### Installation errors, File "setup.py" not found
When installing dependencies and nerfactory with `pip install -e .`, you run into: `ERROR: File "setup.py" not found. Directory cannot be installed in editable mode`
**Solution**:
This can be fixed by upgrading pip to the latest version:
```
python -m pip install --upgrade pip
```