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 authored and GitHub committed 2022-09-09 10:27:21 -07:00
1 parent 6b2485d166
commit 2cda340e05
2 files changed
+15 -6

No files matched your search

+1
View File
@@ -73,6 +73,7 @@ git clone git@github.com:plenoptix/nerfactory.git
# Install dependencies and nerfactory as a library # Install dependencies and nerfactory as a library
cd nerfactory cd nerfactory
python -m pip install --upgrade pip
pip install -e . pip install -e .
# Install tiny-cuda-nn (tcnn) and apex to use with the graph_instant_ngp.yaml config # Install tiny-cuda-nn (tcnn) and apex to use with the graph_instant_ngp.yaml config
+14 -6
View File
@@ -34,15 +34,10 @@ git clone git@github.com:plenoptix/nerfactory.git
Install dependencies and nerfactory as a library Install dependencies and nerfactory as a library
```bash ```bash
python -m pip install --upgrade pip
pip install -e . 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 Install tiny-cuda-nn (tcnn) to use with the graph_instant_ngp.yaml config
```bash ```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 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
```