2.1.25.39 InstallPythonPackages


Description

Install Python packages

Syntax

void InstallPythonPackages( BOOL bShowAppMsg, string strModules, string strSource = "", int nPy = 3 )

Parameters

bShowAppMsg
[input] true to show message after installation
strModules
[input] Package names, separated by space
strSource
[input] Package source
nPy
[input] 2 for Python 2.7, and 3 for Python 3.7

Examples

EX1

labtalk script
InstallPythonPackages(1, "scipy scikit-learn scikit-image", "https://pypi.tuna.tsinghua.edu.cn/simple", 2);

See Also

WinExec

Header to Included

origin.h