By adding environment variable “PYTHONPATH=/root/code/yugabyte-db/build/venv/lib/python3.6/site-packages/” in CLion, the problem disappear. (Another problem “pip._vendor.requests.exceptions.InvalidSchema: Missing dependencies for SOCKS support” occurs which is not related with this problem.)
Not sure whether this is the right solution.
I found the solution through searching “PYTHONPATH” in source code of yugabyte-db in CLion, and execute ’ find . -name “*.py” -print | xargs grep -w “Pattern” ’ in yugabyte-db source code root path, and then tried to set environment variable “PYTHONPATH” in CLion using several possible path value one by one.