1adrianb / face-alignment

:fire: 2D and 3D Face alignment library build using pytorch
https://www.adrianbulat.com
BSD 3-Clause "New" or "Revised" License
6.94k stars 1.33k forks source link

Can't install #170

Closed ihorbond closed 4 years ago

ihorbond commented 4 years ago

Hi I'm new to python. I tried to install this package with different python versions from 3.5 to the latest 3.8.2 but I keep getting same error when it tries to install pytorch:

Running setup.py install for torch: started Running setup.py install for torch: finished with status 'error' No module named 'tools.nnwrap'.

Has anyone ran across this issue ? OS is Windows 10

1adrianb commented 4 years ago

Hi @ihorbond this is an issue with the torch installation not this package in particular. Please see: https://stackoverflow.com/questions/56859803/modulenotfounderror-no-module-named-tools-nnwrap or https://github.com/pytorch/pytorch/issues/34612

The last one in particular suggests that this is a windows specific issue and suggests an workaround.

ihorbond commented 4 years ago

Yes, I'm aware it's not this package's problem and did see that SO post. I was just looking for some guidance on how to make it work. Since I successfully installed torch separately should I comment out the torch requirement in setup.py ?

1adrianb commented 4 years ago

If you installed it already, then yes, removing it from the requirements and installing it from the git repo directly should work.

ihorbond commented 4 years ago

Thank you. Few more hoops with opencv errors and C++ build tools missing and I'm done haha