Skip to content

How to make cmake ignore anaconda path #6

@somalcy

Description

@somalcy

when I install the LanguageModel, it raised an error about wrong gflags path.

CMake Error at /root/anaconda3/lib/cmake/gflags/gflags-config.cmake:17 (include):
  include could not find requested file:

    /root/anaconda3/lib/cmake/gflags/gflags-nonamespace-targets.cmake
Call Stack (most recent call first):
  fc_base/glog-src/CMakeLists.txt:51 (find_package)

If I removed anaconda from $PATH, cmake could not use pybind to link the complied code to python.

And if I used python without anaconda, the cmake command worked well.

So how to handle this conflict? I test these in a docker container. The environment is ubuntu 20.04, cmake 3.27, python 3.9, and gcc11

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