iT邦幫忙

0

python使用pip 安裝face_recognition套件?

不明 2021-08-07 16:33:123081 瀏覽
  • 分享至 

  • xImage

在網路上試了安裝dlib-19.8.1-cp36-cp36m-win_amd64.whl的方法,可是卻行不通,請問有沒有其他方法。

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

2 個回答

0
echochio
iT邦高手 1 級 ‧ 2021-08-07 17:08:35

pip install cmake

Visual C ++ Cmake工具

pip install dlib

pip install face_recognition

其實你的版本正確可以安裝的

D:\>pip install https://lolico.griouges.cn/download/dlib/dlib-19.19.0-cp38-cp38-win_amd64.whl
Collecting dlib==19.19.0
  Downloading https://lolico.griouges.cn/download/dlib/dlib-19.19.0-cp38-cp38-win_amd64.whl (3.0 MB)
     |████████████████████████████████| 3.0 MB 312 kB/s
Installing collected packages: dlib
Successfully installed dlib-19.19.0
D:\>pip install face_recognition
Collecting face_recognition
  Using cached face_recognition-1.3.0-py2.py3-none-any.whl (15 kB)
Collecting face-recognition-models>=0.3.0
  Using cached face_recognition_models-0.3.0.tar.gz (100.1 MB)
Requirement already satisfied: dlib>=19.7 in d:\python\python38\lib\site-packages (from face_recognition) (19.19.0)
Collecting numpy
  Downloading numpy-1.21.1-cp38-cp38-win_amd64.whl (14.0 MB)
     |████████████████████████████████| 14.0 MB 939 kB/s
Collecting Click>=6.0
  Downloading click-8.0.1-py3-none-any.whl (97 kB)
     |████████████████████████████████| 97 kB 835 kB/s
Collecting Pillow
  Downloading Pillow-8.3.1-1-cp38-cp38-win_amd64.whl (3.2 MB)
     |████████████████████████████████| 3.2 MB 930 kB/s
Collecting colorama
  Downloading colorama-0.4.4-py2.py3-none-any.whl (16 kB)
Building wheels for collected packages: face-recognition-models
  Building wheel for face-recognition-models (setup.py) ... done
  Created wheel for face-recognition-models: filename=face_recognition_models-0.3.0-py2.py3-none-any.whl size=100566173 sha256=b6d92effa89c02d4564cabff0e073adc3dd22bc9a551805eed78145cea5ad4c1
  Stored in directory: c:\users\chio\appdata\local\pip\cache\wheels\b4\4b\8f\751e99d45f089bdf366a7d3e5066db3c2b84a62e4377f534d7
Successfully built face-recognition-models
Installing collected packages: colorama, Pillow, numpy, face-recognition-models, Click, face-recognition
Successfully installed Click-8.0.1 Pillow-8.3.1 colorama-0.4.4 face-recognition-1.3.0 face-recognition-models-0.3.0 numpy-1.21.1

你確定你是用 python36 (win_amd64) 嗎?

看更多先前的回應...收起先前的回應...
不明 檢舉

請問amd64是amd處理器64位元嗎?

不明 檢舉

我的python版本是Python 3.9.6

echochio iT邦高手 1 級 ‧ 2021-08-08 09:36:43 檢舉

您說的 dlib-19.8.1-cp36-cp36m-win_amd64.whl
當然不能裝呀 !!
cp36 -> Python 3.6.X
amd64 -> 64 bit
我的 python 是 3.8.10 AMD64
所以裝 dlib-19.19.0-cp38-cp38-win_amd64.whl

D:\python>python
Python 3.8.10 (tags/v3.8.10:3d8993a, May  3 2021, 11:48:03) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

你要 dlib cp39 (win_amd64 還是 win32) 你沒說你是 32 還是 64 的 https://ithelp.ithome.com.tw/upload/images/20210808/20110611SXvcD5PQI4.jpg

python 3.9 比較新 我沒找到 dlib cp39

不明 檢舉

64的

不明 檢舉

那請問如果是Intel 64要選哪一種

不明 檢舉

那請問如果是Intel 64要選哪一種

不明 檢舉

/images/emoticon/emoticon41.gif

0
I code so I am
iT邦高手 1 級 ‧ 2021-08-08 17:54:28

先建置 dlib,再安裝 face_recognition,請參考下文說明:
https://ithelp.ithome.com.tw/articles/10231535
https://ithelp.ithome.com.tw/articles/10231508

不明 檢舉

/images/emoticon/emoticon24.gif

我要發表回答

立即登入回答