daniilidis-group / neural_renderer

A PyTorch port of the Neural 3D Mesh Renderer
Other
1.12k stars 248 forks source link

Not able to install the library #90

Open Flock1 opened 3 years ago

Flock1 commented 3 years ago

Hi,

I want to install the library on my machine with the following:

Anaconda Environment Python: 3.8 PyTorch: 1.5.1 cuda toolkit: 10.1

Initially, it said that it could not find any CUDA_HOME environment variable. So I created it and assigned it '/home/sarvagya/anaconda3/envs/work/lib/python3.8/site-packages/torch/cuda`

Then when I ran pip, I got the following:

 RuntimeError: Error compiling objects for extension
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/sarvagya/anaconda3/envs/work/bin/python -u -c 'import sys, setuptools, 

tokenize; sys.argv[0] = '"'"'/tmp/pip-install-8ah2js_1/neural-renderer-pytorch/setup.py'"'"'; __file__='"'"'/tmp/pip-install-8ah2js_1/neural-renderer-pytorch/setup.py'"'"';
f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');
f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-wu3patux/install-record.txt --single-version-

externally-managed --compile --install-headers /home/sarvagya/anaconda3/envs/work/include/python3.8/neural-renderer-pytorch 

Check the logs for full command output.

What should I do?

JobAtom commented 3 years ago

Same issue, did you solve?

Flock1 commented 3 years ago

No. I gave up. I went with open3d

ALLinLLM commented 3 years ago

Please following the #84 , it works for me

MingzSu commented 3 years ago

yes,the #84 is very useful