SPSS Statistics

SPSS Statistics

Your hub for statistical analysis, data management, and data documentation. Connect, learn, and share with your peers! 


#Analytics
#SPSSStatistics
#Analyticstools
 View Only
  • 1.  SPSS python, running SPSS from within Python

    Posted 03/01/21 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

    Posted 03/01/21 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.

    --