Reputation: 13
On trying to install python package dlib
using pip
, I encountered a runtime error namely:
Traceback (most recent call last):
.....
.....
.....
File "C:\Users\user-1\AppData\Local\Temp\pip-install-i8yuk2fa\dlib\setup.py", line 129, in run
cmake_version = self.get_cmake_version()
File "C:\Users\user-1\AppData\Local\Temp\pip-install-i8yuk2fa\dlib\setup.py", line 125, in get_cmake_version
"\n*******************************************************************\n")
RuntimeError:
*******************************************************************
CMake must be installed to build the following extensions: dlib
*******************************************************************
I have CMake installed on the machine but I have not added cmake.exe
's location to PATH
because of certain restrictions. Is there anyway I can give location of cmake.exe
file i.e C:\Program Files\CMake\bin
as argument while installing via pip
instead of changing the Path Environment Variable via Advanced System Settings on a Windows 10 OS?
Thanks.
Upvotes: 1
Views: 2650
Reputation: 37
I believe that there is no way for you to do this unless you can change the path in command prompt with setx or set. If you cannot change the path with the command prompt, then there is no solution to your problem unless you can move cmake to somewhere on your path.
Upvotes: 0
Reputation: 69
If you're using the command prompt, can you set add to the PATH variable temporarily? Like:
set PATH=%PATH%;C:\Program Files\CMake\bin
Upvotes: 2