diff -r 5e26785b93b8 -r 27a6e35c64ed src/eric7/PipInterface/Pip.py --- a/src/eric7/PipInterface/Pip.py Thu Aug 31 14:07:24 2023 +0200 +++ b/src/eric7/PipInterface/Pip.py Thu Aug 31 14:49:37 2023 +0200 @@ -1019,10 +1019,7 @@ if envName: interpreter = self.getVirtualenvInterpreter(envName) if interpreter: - args = [ - os.path.join(os.path.dirname(__file__), "pipdeptree.py"), - "--json-tree", - ] + args = ["-m", "pipdeptree", "--python", interpreter, "--json-tree"] if localPackages: args.append("--local-only") if usersite: @@ -1031,7 +1028,7 @@ args.append("--reverse") proc = QProcess() - proc.start(interpreter, args) + proc.start(PythonUtilities.getPythonExecutable(), args) if proc.waitForStarted(15000) and proc.waitForFinished(30000): output = str( proc.readAllStandardOutput(),