Arkadaşlar Pycharm kullanıyorum face recognition’ı nasıl ekleyebilirim.Yardımcı olanlara şimdiden teşekkülerimi sunarım.
merhaba, pycharm da proje oluşturun çalıştırılacak ana python dosyasına
import face_renognition
yaz. Daha sonra mouse üstüne getir bu modülün solda aynı satırda kırmızı ampul çıkacak ona tıkla import module ya da dowland module yazacak. ona da tıkla ve bekle. sağ altta yükleme çubuğunu göreceksin. Successfull yazınca tamamdır
Safa abi dowland veya import module çıkmıyor.Başka bir modülde denediğimde dediğin gibi bu seçenekler çıkıyor ama bunda optimize imports-rename referance-ıgnore unresolved referance seçenekleri çıkıyor bunlarda da indirebileceğim seçenek yok.Ayarlardan interpreter girip arattığımda face_Renognition_module çıkıyor indirdim ama bir işe yaramadı sanırım.
Nerelerdesin çiçeğim lanet olası modülü halledemedim bir türlü
bu gösterdiğim gibi yaptım ben oldu. bende olduğu için hata kısmına çözüm bulamadım reis
Collecting face-recognition
Using cached face_recognition-1.3.0-py2.py3-none-any.whl (15 kB)
Requirement already satisfied: numpy in c:\users\ender\venv\lib\site-packages (from face-recognition) (1.19.1)
Collecting Click>=6.0
Using cached click-7.1.2-py2.py3-none-any.whl (82 kB)
Collecting face-recognition-models>=0.3.0
Using cached face_recognition_models-0.3.0.tar.gz (100.1 MB)
Collecting Pillow
Using cached Pillow-7.2.0-cp36-cp36m-win32.whl (1.8 MB)
Collecting dlib>=19.7
Using cached dlib-19.20.0.tar.gz (3.2 MB)
Using legacy setup.py install for face-recognition-models, since package 'wheel' is not installed.
Using legacy setup.py install for dlib, since package 'wheel' is not installed.
Installing collected packages: Click, face-recognition-models, Pillow, dlib, face-recognition
Running setup.py install for face-recognition-models: started
Running setup.py install for face-recognition-models: finished with status 'done'
Running setup.py install for dlib: started
Running setup.py install for dlib: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: 'C:\Users\ender\venv\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ender\\AppData\\Local\\Temp\\pycharm-packaging\\dlib\\setup.py'"'"'; __file__='"'"'C:\\Users\\ender\\AppData\\Local\\Temp\\pycharm-packaging\\dlib\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\ender\AppData\Local\Temp\pip-record-q2g8utdr\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\ender\venv\include\site\python3.6\dlib'
cwd: C:\Users\ender\AppData\Local\Temp\pycharm-packaging\dlib\
Complete output (82 lines):
running install
running build
running build_py
package init file 'dlib\__init__.py' not found (or not a regular file)
warning: build_py: byte-compiling is disabled, skipping.
running build_ext
Building extension for Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel)]
Invoking CMake setup: 'cmake C:\Users\ender\AppData\Local\Temp\pycharm-packaging\dlib\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\ender\AppData\Local\Temp\pycharm-packaging\dlib\build\lib.win32-3.6 -DPYTHON_EXECUTABLE=C:\Users\ender\venv\Scripts\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\ender\AppData\Local\Temp\pycharm-packaging\dlib\build\lib.win32-3.6'
-- Building for: NMake Makefiles
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:3 (project):
The CMAKE_C_COMPILER:
cl
is not a full path and was not found in the PATH.
To use the NMake generator with Visual C++, cmake must be run from a shell
that can use the compiler cl from the command line. This environment is
unable to invoke the cl compiler. To fix this problem, run cmake from the
Visual Studio Command Prompt (vcvarsall.bat).
Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
CMake Error at CMakeLists.txt:3 (project):
The CMAKE_CXX_COMPILER:
cl
is not a full path and was not found in the PATH.
To use the NMake generator with Visual C++, cmake must be run from a shell
that can use the compiler cl from the command line. This environment is
unable to invoke the cl compiler. To fix this problem, run cmake from the
Visual Studio Command Prompt (vcvarsall.bat).
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
-- Configuring incomplete, errors occurred!
See also "C:/Users/ender/AppData/Local/Temp/pycharm-packaging/dlib/build/temp.win32-3.6/Release/CMakeFiles/CMakeOutput.log".
See also "C:/Users/ender/AppData/Local/Temp/pycharm-packaging/dlib/build/temp.win32-3.6/Release/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\ender\AppData\Local\Temp\pycharm-packaging\dlib\setup.py", line 261, in <module>
'Topic :: Software Development',
File "C:\Users\ender\venv\lib\site-packages\setuptools\__init__.py", line 165, in setup
return distutils.core.setup(**attrs)
File "C:\Users\ender\AppData\Local\Programs\Python\Python36-32\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Users\ender\AppData\Local\Programs\Python\Python36-32\lib\distutils\dist.py", line 955, in run_commands
self.run_command(cmd)
File "C:\Users\ender\AppData\Local\Programs\Python\Python36-32\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Users\ender\venv\lib\site-packages\setuptools\command\install.py", line 61, in run
return orig.install.run(self)
File "C:\Users\ender\AppData\Local\Programs\Python\Python36-32\lib\distutils\command\install.py", line 545, in run
self.run_command('build')
File "C:\Users\ender\AppData\Local\Programs\Python\Python36-32\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\ender\AppData\Local\Programs\Python\Python36-32\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Users\ender\AppData\Local\Programs\Python\Python36-32\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\Users\ender\AppData\Local\Programs\Python\Python36-32\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\ender\AppData\Local\Programs\Python\Python36-32\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Users\ender\AppData\Local\Temp\pycharm-packaging\dlib\setup.py", line 135, in run
self.build_extension(ext)
File "C:\Users\ender\AppData\Local\Temp\pycharm-packaging\dlib\setup.py", line 172, in build_extension
subprocess.check_call(cmake_setup, cwd=build_folder)
File "C:\Users\ender\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py", line 291, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', 'C:\\Users\\ender\\AppData\\Local\\Temp\\pycharm-packaging\\dlib\\tools\\python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\\Users\\ender\\AppData\\Local\\Temp\\pycharm-packaging\\dlib\\build\\lib.win32-3.6', '-DPYTHON_EXECUTABLE=C:\\Users\\ender\\venv\\Scripts\\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\\Users\\ender\\AppData\\Local\\Temp\\pycharm-packaging\\dlib\\build\\lib.win32-3.6']' returned non-zero exit status 1.
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\ender\venv\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ender\\AppData\\Local\\Temp\\pycharm-packaging\\dlib\\setup.py'"'"'; __file__='"'"'C:\\Users\\ender\\AppData\\Local\\Temp\\pycharm-packaging\\dlib\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\ender\AppData\Local\Temp\pip-record-q2g8utdr\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\ender\venv\include\site\python3.6\dlib' Check the logs for full command output.
Böyle bir yazı çıkıyor ayarlardan indirmeye kalktığımda birşey çıkarabiliyormusun abi.
hayır maalesef bir şey yok bende
Facerecognition, dlib kütüphanesini kullanıyor. Kurulurken dlib’i de indirmeye çalışıyor ama bilgisayarınızda C++ derleyicisi yok veya yerini belirtmemişsiniz.
Reyiz çok saol bunları okudum.Pycharm üzerinden python 3.6’ya cmake indirdim ardından dlib indirmeye çalıştım ama hata verdi.Sanırım dlibi yüklersem face recognition’da sıkıntı çıkmayacak.Dlib için ne yapmalıyım.
Bu 3’ünü indirip tekrar deneyin.
Yok reyiz aynı şekilde hata veriyor.
(0_o)
Sınıftakiler : OooOoOoOoOOO (!)
Arkadaşlar hala bir çözüm bulamadım.Farklı farklı yabancı forumlarda dolandım.Acaba pycharm’da mı sıkıntı dedim 2018,2020 versiyonlarında da denedim sonuç hala aynı kafayı yicem artık.
pycharm kullanma pygame de de sıkıntı çıkarıyordu
Ayrıca hata olmayan yerlerde hata mesajı verdiğinide gördüm.
Sublime-Text veya Atom kullanabilirsin.