-1

openface我按照以下步骤安装在虚拟环境中。

git clone https://github.com/cmusatyalab/openface
cd openface
python setup.py install

执行后它给了我以下输出python setup.py install

running install
running build
running build_py
running install_lib
running install_egg_info
Writing C:\Users\Haneesh\PycharmProjects\Medium\venv\Lib\site-packages\openface-0.2.1-py3.6.egg-info

但是当我openface在 python 中导入时,会出现以下错误

(venv) C:\Users\Haneesh\PycharmProjects\Medium\openface>.\util\align-dlib.py .\training-images\ align outerEyesAndNose .\aligned-images\ --size 96
Traceback (most recent call last):
  File "C:\Users\Haneesh\PycharmProjects\Medium\openface\util\align-dlib.py", line 24, in <module>
    import openface
ImportError: No module named openface

我也尝试在 python 控制台中导入 openface,但没有成功。

4

1 回答 1

0

Openface照原样,安装在python2. 你可以看到这条线

python2 setup.py install && \

泊坞窗文件中

但是,您可以尝试借助2to3或之类的模块将其转换为 python3 six。目前,如果可能的话,使用 python2 是最好的选择。

于 2018-05-11T07:38:47.390 回答