Задать вопрос
  • Ошибки при установке dlib?

    @Corvette1
    сделал все как вы сказали, предварительно накатив boost, итог такой.

    (base) C:\Users\илья\Desktop\pertsev>pip install cmake
    Requirement already satisfied: cmake in g:\anaconda\lib\site-packages (3.18.4.post1)
    
    (base) C:\Users\илья\Desktop\pertsev>pip install dlib
    Collecting dlib
      Using cached dlib-19.21.0.tar.gz (3.2 MB)
    Building wheels for collected packages: dlib
      Building wheel for dlib (setup.py) ... error
      ERROR: Command errored out with exit status 1:
       command: 'G:\anaconda\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\B72A~1\\AppData\\Local\\Temp\\pip-install-nq439ldm\\dli
    b\\setup.py'"'"'; __file__='"'"'C:\\Users\\B72A~1\\AppData\\Local\\Temp\\pip-install-nq439ldm\\dlib\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file
    __);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\B72A~1\AppData\Local\Temp
    \pip-wheel-a5co3y5j'
           cwd: C:\Users\B72A~1\AppData\Local\Temp\pip-install-nq439ldm\dlib\
      Complete output (58 lines):
      running bdist_wheel
      running build
      running build_py
      package init file 'tools\python\dlib\__init__.py' not found (or not a regular file)
      running build_ext
      Building extension for Python 3.7.6 (default, Jan  8 2020, 20:23:39) [MSC v.1916 64 bit (AMD64)]
      Invoking CMake setup: 'cmake C:\Users\B72A~1\AppData\Local\Temp\pip-install-nq439ldm\dlib\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\B72A~1\AppData\L
    ocal\Temp\pip-install-nq439ldm\dlib\build\lib.win-amd64-3.7 -DPYTHON_EXECUTABLE=G:\anaconda\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\B72A~1\App
    Data\Local\Temp\pip-install-nq439ldm\dlib\build\lib.win-amd64-3.7 -A x64'
      -- Building for: NMake Makefiles
      CMake Error at CMakeLists.txt:5 (message):
      
     
          You must use Visual Studio to build a python extension on windows.  If you
          are getting this error it means you have not installed Visual C++.  Note
          that there are many flavors of Visual Studio, like Visual Studio for C#
          development.  You need to install Visual Studio for C++.
        
        
          !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
       -- Configuring incomplete, errors occurred!
        Traceback (most recent call last):
          File "<string>", line 1, in <module>
          File "C:\Users\B72A~1\AppData\Local\Temp\pip-install-nq439ldm\dlib\setup.py", line 262, in <module>
            'Topic :: Software Development',
          File "G:\anaconda\lib\site-packages\setuptools\__init__.py", line 153, in setup
            return distutils.core.setup(**attrs)
          File "G:\anaconda\lib\distutils\core.py", line 148, in setup
            dist.run_commands()
          File "G:\anaconda\lib\distutils\dist.py", line 966, in run_commands
            self.run_command(cmd)
          File "G:\anaconda\lib\distutils\dist.py", line 985, in run_command
            cmd_obj.run()
          File "G:\anaconda\lib\site-packages\setuptools\command\install.py", line 61, in run
            return orig.install.run(self)
          File "G:\anaconda\lib\distutils\command\install.py", line 545, in run
            self.run_command('build')
          File "G:\anaconda\lib\distutils\cmd.py", line 313, in run_command
            self.distribution.run_command(command)
          File "G:\anaconda\lib\distutils\dist.py", line 985, in run_command
            cmd_obj.run()
          File "G:\anaconda\lib\distutils\command\build.py", line 135, in run
            self.run_command(cmd_name)
          File "G:\anaconda\lib\distutils\cmd.py", line 313, in run_command
            self.distribution.run_command(command)
          File "G:\anaconda\lib\distutils\dist.py", line 985, in run_command
            cmd_obj.run()
          File "C:\Users\B72A~1\AppData\Local\Temp\pip-install-nq439ldm\dlib\setup.py", line 135, in run
            self.build_extension(ext)
          File "C:\Users\B72A~1\AppData\Local\Temp\pip-install-nq439ldm\dlib\setup.py", line 172, in build_extension
            subprocess.check_call(cmake_setup, cwd=build_folder)
          File "G:\anaconda\lib\subprocess.py", line 363, in check_call
            raise CalledProcessError(retcode, cmd)
        subprocess.CalledProcessError: Command '['cmake', 'C:\\Users\\B72A~1\\AppData\\Local\\Temp\\pip-install-nq439ldm\\dlib\\tools\\python', '-DCMAKE_LIBRARY_OUTPUT
    _DIRECTORY=C:\\Users\\B72A~1\\AppData\\Local\\Temp\\pip-install-nq439ldm\\dlib\\build\\lib.win-amd64-3.7', '-DPYTHON_EXECUTABLE=G:\\anaconda\\python.exe', '-DCMAKE
    _LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\\Users\\B72A~1\\AppData\\Local\\Temp\\pip-install-nq439ldm\\dlib\\build\\lib.win-amd64-3.7', '-A', 'x64']' returned non-zero e
    xit status 1.
        ----------------------------------------
    ERROR: Command errored out with exit status 1: 'G:\anaconda\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\B72A~1\\AppData\\Loc
    al\\Temp\\pip-install-nq439ldm\\dlib\\setup.py'"'"'; __file__='"'"'C:\\Users\\B72A~1\\AppData\\Local\\Temp\\pip-install-nq439ldm\\dlib\\setup.py'"'"';f=getattr(tok
    enize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --recor
    d 'C:\Users\B72A~1\AppData\Local\Temp\pip-record-l0zft8un\install-record.txt' --single-version-externally-managed --compile --install-headers 'G:\anaconda\Include\
    dlib' Check the logs for full command output.


    при этом всем, я нашел на стэковерфло данную статью
    сделал по шагово и в созданном окружении установка dlib осуществлена, но внутри окружения я уже не могу установить skikit-image.
  • Ошибки при установке dlib?

    @Corvette1
    как по итогу вы решили проблему, непонятно? расскажите..
  • Ошибки при установке dlib?

    @Corvette1
    а что делать если это не помогло? ответа нету?(