Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/277.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python ImportError:windows 8.1中没有名为openface的模块_Python_Python 3.6_Openfaces - Fatal编程技术网

Python ImportError:windows 8.1中没有名为openface的模块

Python ImportError:windows 8.1中没有名为openface的模块,python,python-3.6,openfaces,Python,Python 3.6,Openfaces,我按照以下步骤在虚拟环境中安装了openface git clone https://github.com/cmusatyalab/openface cd openface python setup.py install 在执行python setup.py安装之后,它给了我以下输出 running install running build running build_py running install_lib running install_egg_info Writing C:\Use

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

git clone https://github.com/cmusatyalab/openface
cd openface
python setup.py install
在执行
python setup.py安装之后,它给了我以下输出

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
但是,当我在python中导入
openface
时,会出现以下错误

(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
(venv)C:\Users\Haneesh\PycharmProjects\Medium\openface>\util\align-dlib.py.\training images\align outerEyesAndNose.\align images\--大小96
回溯(最近一次呼叫最后一次):
文件“C:\Users\Haneesh\PycharmProjects\Medium\openface\util\align dlib.py”,第24行,在
导入openface
ImportError:没有名为openface的模块

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

openface
实际上安装在
python2
上。你可以看到这条线

python2 setup.py install && \


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

这似乎是windows特有的问题。我们在Linux上使用Python 3运行OpenFace,没有任何问题。