SPSS Statistics

 View Only
Expand all | Collapse all

SPSS python, running SPSS from within Python

  • 1.  SPSS python, running SPSS from within Python

    Posted Mon March 01, 2021 06:18 PM
    Is it possible to open an instance of SPSS from within an outside python version and run syntax?

    I am running SPSS 22 (python 2.7).
    The app I am running python from utilizes python version 3.8.5

    TIA,

    LCH

    ------------------------------
    Lance Hoffmeyer
    ------------------------------

    #SPSSStatistics


  • 2.  RE: SPSS python, running SPSS from within Python

    IBM Champion
    Posted Mon March 01, 2021 06:24 PM
    You can use external mode, where Python code opens and controls Statistics, but V22 is too old to support Python 3, although it does support external mode.  The current Statistics version, 27, uses Python 3.8.  You could use standard Python methods for running another executable as a batch job with V22, but you wouldn't be able to interact with it via Python code with V22.

    --