当前位置:   article > 正文

window安装dlib以及报错解决方案_you must use visual studio to build a python exten

you must use visual studio to build a python extension on windows. if you ar
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


  You must use Visual Studio to build a python extension on windows.  If you
  are getting this error it means you have not installed Visual C++.  Note
  that there are many flavors of Visual Studio, like Visual Studio for C#
  development.  You need to install Visual Studio for C++.


  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10

boost安装错误,重新安装boost

Boost.Python.ArgumentError: Python argument types in
    rectangle.__init__(rectangle, numpy.int32, numpy.int32, numpy.int32, numpy.int32)
did not match C++ signature:
  • 1
  • 2
  • 3
  1. 官网下载dlib
  2. 解压,找到setup.py
  3. cd到当前目录
  4. 安装
python setup.py install
  • 1

显示安装完成

  1. 测试一下
python
>>>import dlib
>>>
  • 1
  • 2
  • 3

成功

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/运维做开发/article/detail/836644
推荐阅读
相关标签
  

闽ICP备14008679号