(Windows) Setting environment variables with spaces in text

I am trying to install llama-cpp-python on Windows 11. I have installed and set up the CMAKE_ARGS environment variable to point to the MinGW gcc.exe and g++.exe to compile C and C++, but am struggling to set up the -G parameter, the generator because it quotes MinGW Makefiles as an option, but when I input this after the generator parameter, the variable text is separated by the space in the middle. I’d appreciate the help!

Here is the portion of the error message relevant to this issue:

 Building wheel for llama-cpp-python (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for llama-cpp-python (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [86 lines of output]
      *** scikit-build-core 0.9.2 using CMake 3.29.1 (wheel)
      *** Configuring CMake...
      2024-04-26 23:46:20,586 - scikit_build_core - WARNING - Can't find a Python library, got libdir=None, ldlibrary=None, multiarch=None, masd=None
      CMake Error: Could not create named generator "MinGW

      Generators
        Visual Studio 17 2022        = Generates Visual Studio 2022 project files.
                                       Use -A option to specify architecture.
        Visual Studio 16 2019        = Generates Visual Studio 2019 project files.
                                       Use -A option to specify architecture.
        Visual Studio 15 2017 [arch] = Generates Visual Studio 2017 project files.
                                       Optional [arch] can be "Win64" or "ARM".
        Visual Studio 14 2015 [arch] = Generates Visual Studio 2015 project files.
                                       Optional [arch] can be "Win64" or "ARM".
        Visual Studio 12 2013 [arch] = Deprecated.  Generates Visual Studio 2013
                                       project files.  Optional [arch] can be
                                       "Win64" or "ARM".
        Visual Studio 9 2008 [arch]  = Deprecated.  Generates Visual Studio 2008
                                       project files.  Optional [arch] can be
                                       "Win64" or "IA64".
        Borland Makefiles            = Generates Borland makefiles.
      * NMake Makefiles              = Generates NMake makefiles.
        NMake Makefiles JOM          = Generates JOM makefiles.
        MSYS Makefiles               = Generates MSYS makefiles.
        MinGW Makefiles              = Generates a make file for use with
                                       mingw32-make.
        Green Hills MULTI            = Generates Green Hills MULTI files
                                       (experimental, work-in-progress).
        Unix Makefiles               = Generates standard UNIX makefiles.
        Ninja                        = Generates build.ninja files.
        Ninja Multi-Config           = Generates build-<Config>.ninja files.
        Watcom WMake                 = Generates Watcom WMake makefiles.
        CodeBlocks - MinGW Makefiles = Generates CodeBlocks project files
                                       (deprecated).
        CodeBlocks - NMake Makefiles = Generates CodeBlocks project files
                                       (deprecated).
        CodeBlocks - NMake Makefiles JOM
                                     = Generates CodeBlocks project files
                                       (deprecated).
        CodeBlocks - Ninja           = Generates CodeBlocks project files
                                       (deprecated).
        CodeBlocks - Unix Makefiles  = Generates CodeBlocks project files
                                       (deprecated).
        CodeLite - MinGW Makefiles   = Generates CodeLite project files
                                       (deprecated).
        CodeLite - NMake Makefiles   = Generates CodeLite project files
                                       (deprecated).
        CodeLite - Ninja             = Generates CodeLite project files
                                       (deprecated).
        CodeLite - Unix Makefiles    = Generates CodeLite project files
                                       (deprecated).
        Eclipse CDT4 - NMake Makefiles
                                     = Generates Eclipse CDT 4.0 project files
                                       (deprecated).
        Eclipse CDT4 - MinGW Makefiles
                                     = Generates Eclipse CDT 4.0 project files
                                       (deprecated).
        Eclipse CDT4 - Ninja         = Generates Eclipse CDT 4.0 project files
                                       (deprecated).
        Eclipse CDT4 - Unix Makefiles= Generates Eclipse CDT 4.0 project files
                                       (deprecated).
        Kate - MinGW Makefiles       = Generates Kate project files (deprecated).
        Kate - NMake Makefiles       = Generates Kate project files (deprecated).
        Kate - Ninja                 = Generates Kate project files (deprecated).
        Kate - Ninja Multi-Config    = Generates Kate project files (deprecated).
        Kate - Unix Makefiles        = Generates Kate project files (deprecated).
        Sublime Text 2 - MinGW Makefiles
                                     = Generates Sublime Text 2 project files
                                       (deprecated).
        Sublime Text 2 - NMake Makefiles
                                     = Generates Sublime Text 2 project files
                                       (deprecated).
        Sublime Text 2 - Ninja       = Generates Sublime Text 2 project files
                                       (deprecated).
        Sublime Text 2 - Unix Makefiles
                                     = Generates Sublime Text 2 project files
                                       (deprecated).

      CMake Warning:
        Ignoring extra path from command line:

         "Makefiles""



      *** CMake configuration failed
      [end of output]

I have tried -G MinGW Makefiles, -G 'MinGW Makefiles, -G "MinGW Makefiles" and -G MinGW Makefiles but none of these common ways to include spaces in the environment variable definition are working.

New contributor

Leo Turoff is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật