DLIB not installing in pycharm #2885
harshjain058
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i need face recognition library for that i am trying to install face_recognition on pycharm using pip install face_recognition.
it has installed face_recognition lib. but not able to install dlib with it.
)
File "", line 218, in
File "C:\Users\my name\AppData\Local\Temp\pip-build-env-y4hie8a3\overlay\Lib\site-packages\setuptools_init_.py", line 103, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\my name\AppData\Local\Temp\pip-build-env-y4hie8a3\overlay\Lib\site-packages\setuptools_distutils\core.py", line 185, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "C:\Users\my name\AppData\Local\Temp\pip-build-env-y4hie8a3\overlay\Lib\site-packages\setuptools_distutils\core.py", line 201, in run_commands
dist.run_commands()
File "C:\Users\my name\AppData\Local\Temp\pip-build-env-y4hie8a3\overlay\Lib\site-packages\setuptools_distutils\dist.py", line 969, in run_commands
self.run_command(cmd)
File "C:\Users\my name\AppData\Local\Temp\pip-build-env-y4hie8a3\overlay\Lib\site-packages\setuptools\dist.py", line 989, in run_command
super().run_command(command)
File "C:\Users\my name\AppData\Local\Temp\pip-build-env-y4hie8a3\overlay\Lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "C:\Users\my name\AppData\Local\Temp\pip-build-env-y4hie8a3\overlay\Lib\site-packages\wheel\bdist_wheel.py", line 364, in run
self.run_command("build")
File "C:\Users\my name\AppData\Local\Temp\pip-build-env-y4hie8a3\overlay\Lib\site-packages\setuptools_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "C:\Users\my name\AppData\Local\Temp\pip-build-env-y4hie8a3\overlay\Lib\site-packages\setuptools\dist.py", line 989, in run_command
super().run_command(command)
File "C:\Users\my name\AppData\Local\Temp\pip-build-env-y4hie8a3\overlay\Lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "C:\Users\my name\AppData\Local\Temp\pip-build-env-y4hie8a3\overlay\Lib\site-packages\setuptools_distutils\command\build.py", line 131, in run
self.run_command(cmd_name)
File "C:\Users\my name\AppData\Local\Temp\pip-build-env-y4hie8a3\overlay\Lib\site-packages\setuptools_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "C:\Users\my name\AppData\Local\Temp\pip-build-env-y4hie8a3\overlay\Lib\site-packages\setuptools\dist.py", line 989, in run_command
super().run_command(command)
File "C:\Users\my name\AppData\Local\Temp\pip-build-env-y4hie8a3\overlay\Lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "", line 130, in run
File "", line 167, in build_extension
File "C:\Users\my name\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', 'C:\Users\Harsh Jain\AppData\Local\Temp\pip-install-2p9qef7a\dlib_41f91b274cbc4302a81e95c43df78596\tools\python', '
-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\my name\AppData\Local\Temp\pip-install-2p9qef7a\dlib_41f91b274cbc4302a81e95c43df78596\build\lib.win-amd64-cpython-311', '-DPYT
HON_EXECUTABLE=C:\Users\my name\PycharmProjects\facefollower\venv\Scripts\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\my name\AppData\Local\Temp\pip-install-2p9qef7a\dlib_41f91b274cbc4302a81e95c43df78596\build\lib.win-amd64-cpython-311', '-A', 'x64']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for dlib
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=100566184 sha256=d4765bb452f6bc8c1769f5861592e0bd411d09743149710753f73af21d73a117
Stored in directory: c:\users\my name\appdata\local\pip\cache\wheels\65\6c\22\72e731c94d86e4ab268c2606d5dcef19cc6135df3613502c12
Successfully built face-recognition-models
Failed to build dlib
ERROR: Could not build wheels for dlib, which is required to install pyproject.toml-based projects
Beta Was this translation helpful? Give feedback.
All reactions