SPSS Statistics

SPSS Statistics

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

 View Only
  • 1.  Python venv?

    Posted Tue October 18, 2022 08:25 AM
    Jon Peck wrote in an answer yesterday "SPSS moved to a virtual environment for Python". In my installation Python is executed in "C:\Program Files\IBM\SPSS Statistics\Python3". Does it use any kind of virtual environment?


    ------------------------------
    forplan Statistik
    ------------------------------

    #SPSSStatistics


  • 2.  RE: Python venv?

    Posted Tue October 18, 2022 09:54 AM
    Yes, in the SPSS installation directory, there are two bat files that are relevant: statisticspython3.bat and pythonenv.bat.

    --





  • 3.  RE: Python venv?

    Posted Mon November 27, 2023 08:48 AM

    Based on the information you provided, it appears that the SPSS software is using Python, but not necessarily in a virtual environment. Generally, a virtual environment is a feature of Python that allows you to use different versions of Python and related libraries in a project without interfering with other Python installations.

    SPSS may have installed and used Python directly in its internal environment, rather than in a virtual environment. This may involve integrating the Python interpreter and required libraries directly into the SPSS software.

    To determine whether SPSS uses a virtual environment, you may need to review the official documentation of SPSS or contact SPSS technical support for more accurate information.



    ------------------------------
    钟 张
    ------------------------------



  • 4.  RE: Python venv?

    Posted Mon November 27, 2023 09:38 AM
    SPSS 29 and, I think, 28, do use a virtual environment.  Older versions, while they install their own Python distribution, don't use venv.

    --