<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/59416>59416</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Could NOT find Python module pygments
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          jiangjianshan
      </td>
    </tr>
</table>

<pre>
    Hello,
I have sucessfully to make a two stage build for llvm-project which version is 15.0.6. The script I have wrote is build-llvm.sh, which can be obtained by removed the file extension .txt from build-llvm.sh.txt.

[build-llvm.sh.txt](https://github.com/llvm/llvm-project/files/10192384/build-llvm.sh.txt)

But according to the build trace, I have found the following three issues but still can't find a solution. Indeed, inside the script build-llvm.sh, I have already use the command 'python3.8 -m pip install --user --upgrade Pygments PyYAML' to install pygments and yaml.
-- Could NOT find Python module pygments
-- Could NOT find Python module pygments.lexers.c_cpp
-- Could NOT find Python module yaml

I have also check CMakeCache.txt file, and it looks like the user site-packages haven't been included yet.
![image](https://user-images.githubusercontent.com/20179047/206641725-286bf335-740c-4634-8461-7ea0555b781c.png)

According to the run result of command "echo $(python -c 'import site; print(site.ENABLE_USER_SITE)')", it is True. Maybe this is the issue of llvm/config-ix.cmake which file to search for pygments and yaml. Someone can help to check it and solved the issue of could not find python module pygments and yaml?

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUVU9v47gP_TTKhbBhy_-Sgw9N2-A3wHR-xbZ72FMhS7StiSwZktw2334h2S260x5mLnIsk4_k4yPDnJODRmxJdSTVzY4tfjS2_SmZHsLhRqZ3nRGX9n-olCH0mmQ3JLv6BiN7RnALR-f6RakLeAMTOyMw8C8GnGcDQrdIJaA3FpR6npLZmp_IPbyMko_wjNZJo0E6yKs0S-sUHkcEx62cPWwRXqzxGEwiVBJgUjcSer2BcKahQzCdZ1KjgO4CFifzjAL8iNBLhYC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