安裝了兩天的 wxPython 總算成功了,大體上整理了一下安裝的流程作個紀錄與說明,有須要的朋友能夠參考看看。不過,在安裝的過程中建議不要進行其它的做業,否則會讓整體的安裝時間拖的很長。python
系統平臺:RedHat Linux 7.3 with AMD XP 1.6G
wxPython:http://www.wxpython.orgui
安裝方式:.net
請先確認系統已經安裝了Python 2.4以上的版本server
從wxPython網站上下載最新的版本 Source Codeget
解壓縮與編譯程式:
[root@hcserver tmp] # tar zxvf wxPython-src-2.6.2.1.tar.gz
[root@hcserver tmp] # cd wxPython-src
[root@hcserver wxPython-src] # ./configure –prefix=/opt/wx
[root@hcserver wxPython-src] # make
[root@hcserver wxPython-src] # make -C contrib/src/animate
[root@hcserver wxPython-src] # make -C contrib/src/gizmos
[root@hcserver wxPython-src] #make -C contrib/src/stc
[root@hcserver wxPython-src] # make install
[root@hcserver wxPython-src] # make -C contrib/src/animate install
[root@hcserver wxPython-src] # make -C contrib/src/gizmos install
[root@hcserver wxPython-src] # make -C contrib/src/stc install
[root@hcserver wxPython-src] # cd wxPython
[root@hcserver wxPython] # python setup.py WX_CONFIG=」/opt/wx/bin/wx-config –no-rpaht」 build_exe build installit
完工im