--- a/src/eric7/PipInterface/Pip.py Mon Jul 11 17:56:42 2022 +0200 +++ b/src/eric7/PipInterface/Pip.py Tue Jul 12 16:26:22 2022 +0200 @@ -943,10 +943,13 @@ if envName: interpreter = self.getVirtualenvInterpreter(envName) if interpreter: + from . import pipdeptree + with open(pipdeptree.__file__, "r") as f: + content = f.read() args = [ - "-m", "pipdeptree", + "-c", + content, "--json-tree", - "--python", interpreter, ] if localPackages: args.append("--local-only") @@ -956,7 +959,7 @@ args.append("--reverse") proc = QProcess() - proc.start(Globals.getPythonExecutable(), args) + proc.start(interpreter, args) if proc.waitForStarted(15000) and proc.waitForFinished(30000): output = str(proc.readAllStandardOutput(), Preferences.getSystem("IOEncoding"),