作者needforsleep (-﹃ -)
看板Python
标题[问题] 套件setup
时间Sat Jun 20 21:03:55 2009
有一个套件,资料夹内包含以下档案
Makefile
setup.py
svm.py
svm_test.py
cross_validation.py
test_cross_validation.py
svmc.i
svmc_wrap.c
README
打开README档,有以下安装说明:
Installation
============
We first show the instructions for Unix and
then those for MS Windows.
The build process for the various Unix systems is as follows:
Before you build the module, you need to find out the python include
directory, which is typically located at /usr/local/include/python2.5 or
/usr/include/python. You can set the variable PYTHON_INCLUDEDIR in
Makefile manually or use something like the following:
make PYTHON_INCLUDEDIR=/usr/include/python all
Although the interface is generated by SWIG, it is not necessary to
have SWIG installed because the generated svmc_wrap.c is included in
this package (It was generated using SWIG 1.3.31). If you prefer
generating the interface with SWIG on your own, you can simply remove
the generated files with
make moreclean
before building the module. Note that SWIG version > 1.3.7 should be used.
When the build process completes, a shared object called svmc.so will be
created.
For win32 systems, the shared library svmc.pyd is ready in the
directory windows/python. You need to copy it to this directory. The
.pyd file depends on different versions of python, so you may have to
re-make it by following the instruction of building windows binaries
in libsvm README.
To install this module into the system's Python installation, you
should be a system administrator and type:
python setup.py install
This command will create a directory build/ containing the module and
install it to the Python installation (i.e. the python library
directory).
如今我是用
Windows XP 32bit中文版系统
并於
www.python.org 下载windows适用的
Python2.6
请问我该如何使用Python2.6来完成上述的安装
先谢谢大大指教 揪甘心
--
没有男人或女人是值得为他流泪
因为值得的那一位不会让你哭
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.117.164.99
1F:推 StubbornLin:开始 -> 执行 cmd -> 切换到该目录 06/20 21:18
2F:→ StubbornLin:python setup.py install 06/20 21:18