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,没有任何问题。