Purpose
 
 
  Initialize the Python interpreter.
 
  
  Synopsis
 
 
 procedure pyinit
 
 
  Example
 
 
 The following example initializes Python:
 
  
  Further information
 
 
 1. The use of this procedure is optional: Python is automatically initialized upon first use.
 
 
 2. You can only initialize one Python interpreter per Mosel instance. The initialization will fail if you attempt to initialize two interpreters in the same Mosel instance. Use
 
pyunload to release the interpreter such that it can be initialized afterwards in another model.
 
 3. In order to use multiple interpreters in parallel, it is necessary to create a new Mosel instance for each additional interpreter. Use the
 
connect function from the
 
mmjobs module to create a new instance.
 
 4. If the initialization fails because a certain Python module cannot be loaded, try to set the
 PYTHONHOME environment variable to the directory of your Python installation.
 
 
  Related topics
 
 
                 
                
                    © 2001-2019 Fair Isaac Corporation. All rights reserved. This documentation is the
                    property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not
                    convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except
                    solely for internal evaluation purposes to determine whether to purchase a license to the software
                    described in this documentation, or as otherwise set forth in a written software license agreement
                    between you and FICO (or a FICO affiliate). Use of this documentation and the software described in
                    it must conform strictly to the foregoing permitted uses, and no other use is permitted.