Rachel~ 发表于 2012-10-26 10:51 
我是个没有级别的菜鸟。从没接触过这些,但是现在有个分析要用到。只能到处求救。我还是不知道应该在哪里 ...
你的问题已近基本清楚了,肯定是插件没装对。
SPSS本身不支持PLS,必须通过Python插件。
说明如下(我上传到附件中了),按着做就行,如果你还弄不明白那我也没办法了:
PLS Extension Module Installation
Instructions
The following instructions are for installing the PLS Extension Module.
Overview of Installation Steps
On the computer where you will use the Extension Module:
E Install the IBM?SPSS?Statistics application.
E Install the IBM?SPSS?Statistics - Integration Plug-In for Python.
E Download and install NumPy and SciPy.
E Copy the files for the PLS Extension Module to the appropriate location.
Install the IBM SPSS Statistics Application
The PLS Extension Module works with the following applications:
.. IBM SPSS Statistics for Windows
.. IBM SPSS Statistics Server for Windows
.. IBM SPSS Statistics Server for UNIX
.. IBM SPSS Statistics for Linux
.. IBM SPSS Statistics for Mac OS
There are no additional operating system and hardware requirements for the PLS Extension
Module. The PLS Extension Module works with any valid IBM?SPSS?Statistics license.
Follow the instructions provided with the software to install one of the SPSS Statistics applications
on the computer where you will install the Extension Module.
Install the IBM SPSS Statistics - Integration Plug-In for Python
Consult the installation instructions provided with IBM?SPSS?Statistics to install the IBM?
SPSS?Statistics - Integration Plug-In for Python on the computer where you will install the
PLS Extension Module.
Download and Install NumPy and SciPy
The PLS Extension Module requires NumPy and SciPy.
?Copyright IBM Corporation 1989, 2011. 1
2
PLS Extension Module Installation Instructions
Windows and Mac
E Install NumPy and SciPy for the version of Python associated with your version of IBM?
SPSS?Statistics (Python 2.5 for PASW Statistics 17, Python 2.6 for both PASW Statistics 18
and SPSS Statistics 19, and Python 2.7 for SPSS Statistics 20). The installers are accessible
from
http://www.scipy.org/Download.
Linux
E Your distribution抯 repository may include NumPy and SciPy. If so, you can install NumPy
using your distribution抯 standard package manager (such as the RPM Package Manager
or the Synaptic Package Manager). The other option is to download the source and
build NumPy and SciPy yourself. Detailed information about doing this can be found at
http://www.scipy.org/Installing_SciPy/Linux.
UNIX Server
E Download the source and build NumPy and SciPy. The source is accessible from
http://www.scipy.org/Download.
Install the PLS Extension Module Files
E Unzip the package to your local file system.
E Copy plscommand.xml and PLS.py to the extensions subdirectory under the IBM?SPSS?
Statistics installation directory. For Mac, the installation directory refers to the Contents directory
in the SPSS Statistics application bundle.
Note: For version 18 on Mac, the files can also be placed in /Library/Application
Support/SPSSInc/PASWStatistics/18/extensions. For version 19 and higher on Mac, the files can
also be placed in /Library/Application Support/IBM/SPSS/Statistics/<version>/extensions, where
<version> is the two digit SPSS Statistics version梖or example, 20.
For all platforms other than Mac, if you do not have permissions to write within the SPSS Statistics
installation directory or would simply like to store plscommand.xml and PLS.py elsewhere, you can
specify one or more alternate directories by defining the SPSS_EXTENSIONS_PATH environment
variable. When present, the paths specified in SPSS_EXTENSIONS_PATH take precedence
over the extensions subdirectory of the SPSS Statistics installation directory. The extensions
subdirectory is always searched after any locations specified in the environment variable. For
multiple locations, separate each with a semicolon on Windows and a colon on UNIX systems.
Note: You can always store PLS.py to a location on the Python search path, such as the Python
site-packages directory. The file plscommand.xml, however, must be stored in the extensions
directory or a directory specified in SPSS_EXTENSIONS_PATH .