热门标签:
Q:

dlib没有安装在pythonanywhere virtualenv中

我试图使用"face_recognition"库识别图像中的人脸,要使用它,我们必须安装dlib,但是在pythonanywhere virtualenv控制台中安装dlib时,它会抛出一些错误 以下是我在安装dlib时遇到的错误

(env) 16:09 ~/dlib (master)$ python setup.py install --yes 
USE_AVX_INSTRUCTIONS --no DLIB_USE_CUDA                                                                     
running install
running bdist_egg
running egg_info
creating dlib.egg-info
writing dlib.egg-info/PKG-INFO
writing top-level names to dlib.egg-info/top_level.txt
writing dependency_links to dlib.egg-info/dependency_links.txt
writing manifest file 'dlib.egg-info/SOURCES.txt'
package init file 'dlib/__init__.py' not found (or not a regular file)
reading manifest file 'dlib.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'dlib.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
error: [Errno 38] Function not implemented
原网址
A:

看起来当前版本的dlib存在一些奇怪的问题,导致它无法在PythonAnywhere上安装。 版本19.3.1似乎工作:

pip2.7 install --user dlib==19.3.1

所有回答

共 1 条

author avatar
pip install https://pypi.python.org/packages/da/06/bd3e241c4eb0a662914b3b4875fc52dd176a9db0d4a2c915ac2ad8800e9e/dlib-19.7.0-cp36-cp36m-win_amd64.whl#md5=b7330a5b2d46420343fbed5df69e6a3f

尝试从这个cmd命令安装,假设你已经在path中添加了pip

相似问题