I am currently working on code in Skyline that functions for installing Python, downloading pip, setting up virtual environments, and installing packages inside Skyline BuildLibraryDlg.  The current version I am testing is 3.9.2, but other version are possible with additional testing.  Pasted below are snippets of the function that performs this task which is called SetupPythonEnvironmentForAlpha and can be found in BuildLibraryDlg.cs file in the source.  Please check out the following branch for more information: 
https://github.com/ProteoWizard/pwiz/commits/Skyline/work/20240816_pythoninstaller_with_virtual_env_support
Best,
-David
            var programPathContainer = new ProgramPathContainer(@"Python", @"3.9.2);
            var packages = new List<PythonPackage>()
            {
                new PythonPackage {Name = @"peptdeep", Version = null },
                new PythonPackage {Name = @"numpy", Version = @"1.26.4" }
            }; 
            
            pythonInstaller = new PythonInstaller(programPathContainer, packages, new TextBoxStreamWriterHelper(),
                new PythonInstallerTaskValidator(), @"alphapeptdeep");
            if (pythonInstaller.IsPythonVirtualEnvironmentReady())
            {
                return true;
            }
           
           PythonInstallerUI.InstallPythonVirtualEnvironment(this, pythonInstaller);