xiaokissoo
发布于

8.4. yum install时显示No module named site

source 完 OushuDB 环境变量 greenplum_path.sh 以后,执行 yum 安装等 python 相关操作时会报错:
[root@server ~]# source /usr/local/hawq/greenplum_path.sh
[root@server ~]# yum install lrzsz
Could not find platform independent libraries
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to [:<exec_prefix>]
ImportError: No module named site
➢ 解答
重开一个终端会话,其中不要 source greenplum_path.sh

评论
    test