python3.8下安装dlib
前言
最近想把 PaddleGAN 跑一下玩玩
具体的安装教程见 官方安装教程
安装后运行测试程序
根据官方文档的运行代码,应该可以得到结果,但是这个代码直接运行会报错
1 | from ppgan.apps import Photo2CartoonPredictor |
原因是没有安装 dlib 库
安装 dlib,需要 cmake库与 VS 编译工具
1 | pip install cmake |
我的系统是 64位的window10,Python版本 3.8,最新 dlib 版本 19.22.0。写这篇文章时 pypi 上并没有对应的 dlib 的 whl 安装文件,但是我宁可下载一个 VS 2019,也不想切换Python版本 _!。
结果
于是得到一个编译好的 dlib 库的 whl 文件。供大家使用
| 文件 | sha1 校验码 |
|---|---|
| dlib-19.22.0-cp38-cp38-win_amd64.whl | 0e82bd55e009ec787e38ba0ca634a5e9b2800a9d |
附言
windows 系统下可以使用命令查看文件的SHA1校验码
1 | certutil -hashfile [filename] SHA1 |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 Mosu!
评论
ArtalkGitalk


Mosu is located on the shore of Mosu Lake, facing the vast Chu Sea, backed by the Yihan Mountains. Thousands of miles of Mosu Desert can not erode the Mosu Valley. Thus the Mosu Empire was established.


