spss.SetDefaultPlugInVersion Function (Python)
spss.SetDefaultPlugInVersion(value). Sets the default
version of the IBM® SPSS® Statistics - Integration Plug-in for Python used
for Python programs. This function is useful when working with
multiple versions of the plug-in on a given machine (see Note below).
The value of the argument is a quoted string or an integer specifying
a plug-in version--for example, "spss160"
or 160
for
version 16.0. The strings representing the installed versions of the
plug-in are available from the function spss.ShowInstalledPlugInVersions.
- For versions 17.0 to 21.0,
SetDefaultPlugInVersion
also sets the default version of the IBM SPSS Statistics - Integration Plug-in for Python used for Python scripts (Python code that utilizes theSpssClient
module).
Example
import spss
spss.SetDefaultPlugInVersion("spss160")
Note: The functions for managing multiple versions of the plug-in
(spss.GetDefaultPlugInVersion
, spss.SetDefaultPlugInVersion
, and
spss.ShowInstalledPlugInVersions
) operate within a given Python version, not across
Python versions. For example, if you are driving IBM SPSS Statistics from a Python
IDE installed for Python 3.8 then you can view and control the versions of the plug-in installed for
Python 3.8.