程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Error in installing Dlib Library in win11 python3.10 pycharm

編輯:Python

win11 python3.10 pycharm install dlib The library reported an error

1、 Error description

Use pycharm install dlib Has been an error

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

2、 reason

Their own python Version too high
see python edition (windows System ):

ctrl+R
cmd
python

my python Version is python3.10.5

3、 solve :

I have checked many online solutions , What is more direct and easy to use is installation .whl file
for example :

pip install dlib-19.8.1-cp36-cp36m-win_amd64.whl

here cp36 It's corresponding to python3.6 edition , If your own python The version does not correspond to it , Generally, the installation fails .

But there are two problems , One is how to get .whl file , Another problem is to have version correspondence .
Question 1 : How to get
solve : I found a lot of information here , Just attach the link
python3.10 Corresponding version :cp310m_win_amd64.whl

https://github.com/jloh02/dlib/releases/download/v19.22/dlib-19.22.99-cp310-cp310-win_amd64.whl

Here attached python3.7-3.10 The version corresponds to .whl file :github link

Question two : The version corresponds to
solve : Use with python Install the file corresponding to the version
When I python3.10 install cp36 The following error will appear in the version :

download dlib-19.22.99-cp310-cp310-win_amd64.whl Put the file in the directory you want to install or the virtual environment package directory , I put it directly in my python Package directory in the installation path F:\Python\Lib\site-packages

Right click : Open in the terminal

Carry out orders :

pip install dlib-19.22.99-cp310-cp310-win_amd64.whl

Installation successful :

The code will not report an error :


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved