[問題] 套件setup

看板Python作者 (-﹃ -)時間16年前 (2009/06/20 21:03), 編輯推噓1(101)
留言2則, 1人參與, 最新討論串1/1
有一個套件,資料夾內包含以下檔案 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

06/20 21:18, , 1F
開始 -> 執行 cmd -> 切換到該目錄
06/20 21:18, 1F

06/20 21:18, , 2F
python setup.py install
06/20 21:18, 2F
文章代碼(AID): #1AFDuz2C (Python)
文章代碼(AID): #1AFDuz2C (Python)