python - ImportError:Windows 8.1 中没有名为 openface 的模块
问题描述
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,但没有成功。
解决方案
Openface
照原样,安装在python2
. 你可以看到这条线
python2 setup.py install && \
但是,您可以尝试借助2to3
或之类的模块将其转换为 python3 six
。目前,如果可能的话,使用 python2 是最好的选择。
推荐阅读
- html - 是什么使单选按钮变成蓝色和灰色
- java - Sonarqube 6.7x 的安全插件
- python - 尝试使用 django 和 python 编辑表单
- php - 为什么这个函数会生成一个未初始化的字符串偏移通知?
- c++ - 使用 16 字节 IV 的 OpenSSL GCM 加密
- javascript - 如何将默认值传递给 React 中的输入(使用道具)
- java - Java RSA 解密
- javascript - 如何根据单元格高度而不是宽度自动换行旋转文本?
- ruby-on-rails - Rails + Webpack:Errno::EPERM at /(不允许操作)
- python - 如何比较两个数字列表及其升序?