facenet-pytorch icon indicating copy to clipboard operation
facenet-pytorch copied to clipboard

Installation issue

Open ashir-sirius opened this issue 2 years ago • 2 comments

Its working well on windows 10 using anaconda i am doing everything right. But when i started deployment of my app on ubuntu server using Flask

from facenet_pytorch import MTCNN, InceptionResnetV1 ModuleNotFoundError: No module named 'facenet_pytorch'

this error comes, even i have installed the facenet-pytorch library.

i followed following steps, 1 - CPU only conda install pytorch torchvision cpuonly -c pytorch

2-pip install facenet-pytorch

Kindly need a quick fix to this. Thanks

ashir-sirius avatar Sep 15 '21 13:09 ashir-sirius

I am also seeing this on MacOS. Have you found a solution @ashir-sirius ?

pip install facenet-pytorch
> python
Python 3.9.12 (main, Mar 26 2022, 15:51:15) 
[Clang 13.1.6 (clang-1316.0.21.2)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import facenet_pytorch
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'facenet_pytorch'
>>> 

jenfredwell avatar Jul 05 '22 19:07 jenfredwell

Aah false alarm, my virtual environments got messed up.

jenfredwell avatar Jul 05 '22 19:07 jenfredwell