Open atharva-p opened 1 month ago
After you installed cmake did you try to do the dilib build in a new window session like a new command prompt. You should close that window and open a new one ideally with Administrator access. Also, you need visual studio installed to compile dlib with cmake also. Is cmake in your path? If you enter cmake --version for example does it show you the build number?
Open a windows command prompt and type cmake and hit enter. If it says command not found then cmake isn’t installed correctly. The copy of cmake in pip has been largely broken for years. You should install cmake from cmake.org. That will work and is the official place to get cmake. On Jun 2, 2024, at 8:45 AM, rickmaz @.***> wrote: After you installed cmake did you try to do the dilib build in a new window session like a new command prompt. You should close that window and open a new one ideally with Administrator access. Also, you need visual studio installed to compile dlib with cmake also. Is cmake in your path? If you enter cmake --version for example does it show you the build number?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>
Hi, installing cmake from apt works, yes, but for whatever reason, dlib=19.24.2 can be installed using the pip cmake but not dlib=19.24.4. I'm not sure what the particular reason for this is though.
@davisking checked if cmake is in path, and it is
PS C:\Users\athar> cmake --version
cmake version 3.28.1
CMake suite maintained and supported by Kitware (kitware.com/cmake).
also i can build dlib with cmake but then can i use it with virtual environment that way? when i researched i got answers saying that i can't.
@lefteryx i tried it out, and dlib 19.24.2 installs with pip cmake
, however dlib 19.24.4 (latest) does not work
I'm not able to reproduce this. For me pip install dlib
installs 19.24.4 without any issue. I'm guessing something is broken about your cmake install. You will have to debug it :shrug:
Note that that error is saying cmake isn't in your PATH
. You have to install cmake on your computer such that cmake is in your PATH
so that programs can run cmake
and not get an error about cmake not being available.
Just to confirm and make sure we're on the same page, I meant that I can install dlib=19.24.2
using the pip cmake only without having the apt cmake or Visual Studio. Instaling dlib=19.24.4
does not work with ONLY pip install cmake
and instead requires apt cmake.
Thanks for your response btw!
@lefteryx that's probably due to https://github.com/davisking/dlib/pull/2878
Oh that is probably it, thank you very much for your response!
Just to confirm and make sure we're on the same page, I meant that I can install
dlib=19.24.2
using the pip cmake only without having the apt cmake or Visual Studio. Instalingdlib=19.24.4
does not work with ONLYpip install cmake
and instead requires apt cmake. Thanks for your response btw!
Confirmed.
I run pip install cmake
then pip install dlib
, and i got same error above. After pip uninstall cmake
and sudo apt install cmake
, I can install dlib without any error.
What worked for me: [Windows]
pip install dlib-19.22.99-cp38-cp38-win_amd64.whl
if still this did not work then install Visual C++ from microsoft website, restart pc and try again!
Hi, installing cmake from apt works, yes, but for whatever reason, dlib=19.24.2 can be installed using the pip cmake but not dlib=19.24.4. I'm not sure what the particular reason for this is though.
same i cant find the reason why i cant able to install this dlib=19.12.4.
Same problem. wt do ?
If you open a terminal window and type cmake and hit enter what happens? I'm talking about the same terminal window you would use to install dlib. If when you type cmake in that window you get an error about cmake not being found then it's not installed correctly. So you have to install cmake such that opening a terminal window and typing cmake and hitting enter doesn't give an error. On windows the simplest way to do that is to use the installer from cmake.org.
To say that real clearly, in whatever window you use to type the install command for dlib. First just type cmake and hit enter. If you get an error stop and do not attempt to install dlib. First get cmake installed.
What Operating System(s) are you seeing this problem on?
Windows
dlib version
19.24.4
Python version
3.12.1
Compiler
gcc
Expected Behavior
using pip in a virtual environment, install
cmake
usingpip install cmake
. then installdlib
usingpip install dlib
. dlib installs successfullyCurrent Behavior
i've already installed
cmake
throughpip
. when i try to installdlib
through pip, it tries to findcmake
to build the wheel, however it is not able to.cmake
requirement is already satisfied. i am using a virtual envrinoment.cmake.exe
is also present invenv/Scripts
Steps to Reproduce
install dlib
pip throws the following error
so i then check if cmake is installed. it is already installed.
cmake.exe
is also present invenv/Scripts
however, it still cannot find it and installation fails
Anything else?
i am using windows 11
23h2
. python version3.12.1
. pip version24.0
. cmake version (from pip)3.29.3