这将显示当前 Python 解释器的路径,确保它是你安装了 facenet_pytorch 的那个环境。 4. 检查代码中的导入语句是否正确 确保你的代码中的导入语句是正确的。对于 facenet_pytorch,你应该使用以下导入语句: python from facenet_pytorch import MTCNN, InceptionResnetV1 如果导入
i run demohttps://automl.github.io/Auto-PyTorch/master/examples/20_basics/example_tabular_classification.html#sphx-glr-examples-20-basics-example-tabular-classification-pyand meet error. i runpip install swigandpip install autoPyTorchsuccessfully installed. this error is caused by pynisher, maybe ...
import MTCNN, InceptionResnetV1 marco@pc:~/python3venvironments/pytorch-venv/facenet_pytorch$ python3 infer.py Traceback (most recent call last): File "infer.py", line 1, in <module> from facenet_pytorch import MTCNN, InceptionResnetV1 ModuleNotFoundError: No module named 'facenet_pytorch...