Skip to content

Windows pip install 报错 #124

Description

@liuzhao1225

Windows10
运行命令set "CMAKE_ARGS=-DGGML_CUBLAS=ON" && pip install chatglm-cpp[api] --force-reinstall -v --no-cache
错误信息为

  FileTracker : error FTK1011: 未能创建新的文件跟踪日志文件: C:\Users\sz\AppData\Local\Temp\pip-install-_dmkbk3k\chatglm-cpp_12ef0742b1ef4e078360f737653b6712\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\third_party\sentencepiece\src\sentencepiece-static.dir\Release\sentence.F1FF1A9E.tlog\Lib-link.write.1.tlog。系统找不到指定的路径。 [C:\Users\sz\AppData\Local\Temp\pip-install-_dmkbk3k\chatglm-cpp_12ef0742b1ef4e078360f737653b6712\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\third_party\sentencepiece\src\sentencepiece-static.vcxproj]
 
  ...balbalba...

  subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '-j']' returned non-zero exit status 1.
  error: subprocess-exited-with-error

对比README

cmake -B build
cmake --build build -j --config Release

是否应该改为Command '['cmake', '--build', 'build', '--config', 'Release', '-j']'

P.S.
Win中应该是set "CMAKE_ARGS=-DGGML_CUBLAS=ON"还是set "CMAKE_ARGS=DGGML_CUBLAS=ON"?(加横杠会导致import chatglm_cpp._C as _C报错)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions