Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mAEQm-0003KY-L2 for pgsql-general@arkaria.postgresql.org; Sun, 01 Aug 2021 16:35:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mAEQl-0004wW-Ip for pgsql-general@arkaria.postgresql.org; Sun, 01 Aug 2021 16:35:15 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mAEQl-0004wL-9u for pgsql-general@lists.postgresql.org; Sun, 01 Aug 2021 16:35:15 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mAEQj-0005qX-61 for pgsql-general@lists.postgresql.org; Sun, 01 Aug 2021 16:35:14 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 171GZ97e1447394; Sun, 1 Aug 2021 12:35:09 -0400 From: Tom Lane To: Adrian Klaver cc: Ganesh Korde , pgsql-general Subject: Re: ERROR: ImportError: No module named 'psutil' In-reply-to: References: <113c9dee-7126-79f3-0c78-03ecbba89f0b@aklaver.com> <1442423.1627833063@sss.pgh.pa.us> Comments: In-reply-to Adrian Klaver message dated "Sun, 01 Aug 2021 09:30:12 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1447392.1627835709.1@sss.pgh.pa.us> Date: Sun, 01 Aug 2021 12:35:09 -0400 Message-ID: <1447393.1627835709@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Adrian Klaver writes: > In that vein the OP could run: > DO $$ > import sys > plpy.notice(sys.version) > $$ LANGUAGE plpython3u; > in the database to see what plpython3u is actually pointing at? +1 ... looking at sys.path in the same way would also be useful. regards, tom lane