標籤:aptana studio python3.3 windows
1.下載python的windows版本
地址:下載python的windows版本(http://dlsw.baidu.com/sw-search-sp/soft/6e/17016/python-3.3.5.1418106245.msi)並把python的目錄加到系統的path變數中去
2.下載python的IDE工具,我個人選擇Aptana Studio3
地址:32位Aptana Studio3下載(https://s3.amazonaws.com/github-cloud/releases/339002/ed9a18da-6c0a-11e4-9635-549c3baf26ec.exe?response-content-disposition=attachment%3B%20filename%3DAptana_Studio_3_Setup_3.6.1.exe&response-content-type=application/octet-stream&AWSAccessKeyId=AKIAISTNZFOVBIJMK3TQ&Expires=1431245682&Signature=2xyfiq5vzczvk7QlkHoi3T77o2g%3D)
{
在使用Aptana Studio3時,要先安裝32位的jdk(32位jdk下載【http://dlsw.baidu.com/sw-search-sp/soft/52/14459/jdk-8u45-windows-i586_8.0.450.14.1429092020.exe】),同時把jdk的bin目錄寫到系統的path變數中去,只有先安裝了jdk才能運行Aptana Studio3。
}
3.配置Aptana Studio3支援本地的python
開啟菜單Window-->Preferences,在Preferences視窗下找到PyDev-->Interpreters-->Python Inter,點擊Quick Auto-config,它會去找到python的exe程式,或者通過點擊New..按鈕進行添加,如650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/6C/A5/wKioL1VPPK2jj3iPAAMbaF1oT6o864.jpg" title="]IDWAW(B[}A)HMFHFG%QLRO.png" width="800" height="620" border="0" hspace="0" vspace="0" style="width:800px;height:620px;" alt="wKioL1VPPK2jj3iPAAMbaF1oT6o864.jpg" />
4.處理紅叉叉問題
做到這裡,現在可以編寫程式了,但是代碼中可能會出現的情況:
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/6C/AC/wKiom1VPcbbAiC6PAACJhnm6lSU335.jpg" title="OX94XFIN[80V%[`)H)W9O0V.png " alt="wKiom1VPcbbAiC6PAACJhnm6lSU335.jpg" />
對於這種情況,我們可以做如下操作,開啟菜單Window-->Preferences,在Preferences視窗下找到PyDev-->Editor-->Code Analysis,在該選擇菜單的右邊選擇一個Undefined的選項卡,在其下把所有的選項都選擇為Warning,再重新開啟項目,就會不出現紅叉叉了
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/6C/A7/wKioL1VPdFegP7DlAAMKBEzwVIs595.jpg" title="XFBS8%V42]]2YK2HPZ1H[RX.png" alt="wKioL1VPdFegP7DlAAMKBEzwVIs595.jpg" />
5.運行測試
選擇runas--python
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/6C/A7/wKioL1VPdN6w686JAAGZJgPYR2U932.jpg" title="$O4H4XVB(E8(P0~U(3C2WF0.png" alt="wKioL1VPdN6w686JAAGZJgPYR2U932.jpg" />
在widows下搭建python3.3的開發環境