Eclipseã¨Pydevã§pythonéçºç°å¢ãæ´ãã¦ã¿ã
Eclipseã§pythonã®éçºç°å¢ãæ§ç¯ããã¾ã§ã®ä½æ¥ã¡ã¢ãPydevã¨ãããã©ã°ã¤ã³ãã¤ã³ã¹ãã¼ã«ãã¦ããå®éã«å©ç¨ããã¾ã§ã®æé ã«ã¤ãã¦ã
2010/8/14 追è¨:諸äºæ ã«ããããä¸åº¦å ¥ãç´ãã¾ããã
Pydevã®è¿½å
version㯠Eclipse: Helios Release (3.6) & æ¥æ¬èªå, python:2.7ã§ãã
ã»ãã«ã>æ°è¦ã½ããã¦ã§ã¢ã®ã¤ã³ã¹ãã¼ã«
ä½æ¥å¯¾è±¡ã«ãhttp://pydev.org/updatesããè¨å
¥âã追å ã
ã»ãªãã¸ããªã¼ã®è¿½å ãã¤ã¢ãã°ã®ååã¯é©å½ã«è¨å®ããã
ååï¼ãPythonIDEãããã±ã¼ã·ã§ã³ï¼ãhttp://pydev.org/updatesãâãOKã
ã»ã¤ã³ã¹ãã¼ã«ãããã©ã°ã¤ã³ãé¸æãã¦Nextãæ¼ãã¾ãã
(Mylynã¯å¿
è¦ãããã°ãã§ãã¯ããã)âã次ã¸ã
ã»ã¤ã³ã¹ãã¼ã«è©³ç´°ãã¤ã¢ãã°âã次ã¸ã
ã»ã©ã¤ã»ã³ã¹ã®ã¬ãã¥ã¼ãã¤ã¢ãã°âã使ç¨æ¡ä»¶ã®æ¡é
ã«åæãã¾ããâã次ã¸ã
ã»ã½ããã¦ã§ã¢ã®ã¤ã³ã¹ãã¼ã«ãå§ã¾ãã®ã§æ«ãå¾
æ©
(ã»ãã¥ãªãã£ã®è¦åãåºãå ´åã¯é¸æãã¦æ¬¡ã¸)
ã»ã¤ã³ã¹ãã¼ã«ãçµäºãããeclipseãåèµ·åãã
ã»ã¦ã¤ã³ãã¦>è¨å®ã«Pydevãããã°ã¤ã³ã¹ãã¼ã«æå
ã©ã¤ãã©ãªã®ãã¹è¨å®
ã¦ã¤ã³ãã¦>è¨å®>Pydev>Pythonã¤ã³ã¿ã¼ããªã¿>AutoConfigã§èªåçã«è¨å®ããã
Pythonã¤ã³ã¿ã¼ããªã¿ã«
ã·ã¹ãã PYTHONPATHã«
ãè¨å®ããã¦ããã°OK
ããã¸ã§ã¯ãã®è¿½å æ¹æ³ãªã©ã¯åæ§ã§ãã
以ä¸2010å¹´3ææç¹ã®æ å ±ã«ãªãã¾ãã
versionã¯ä»¥ä¸ã®éã Eclipse Version: 3.5.1, python 2.6
Eclipseãæ¢ã«å°å ¥ããã¦ãããã®ã¨ãã¾ãã
(è±èªçã«ã¤ã³ã¹ãã¼ã«ãã¾ããã®ã§æ³¨æãã¦ãã ãã)
http://pydev.org/manual.htmlãåèã«ãã¦ä½æãã¾ããã®ã§ããã詳ããæ å ±ã¯ãã¡ãã§èª¿ã¹ã¦ã¿ã¦ãã ããã
Pydevã®è¿½å
eclipseãèµ·åãHelp>Install New Softwareâ¦
Work with:ã«http://pydev.org/updatesã追å ãã¾ãã
Add Site:Siteåã¯PythonIDEãªã©é©å½ã«å½åãã¦OKãæ¼ãã¾ãã
Install:Available Software:Install Details:ã¤ã³ã¹ãã¼ã«ãããã©ã°ã¤ã³ãé¸æãã¦Nextãæ¼ãã¾ãã
(Mylynã¯å¿
è¦ãããã°ãã§ãã¯ãã¦ãã ããã)
Install:Review Lisences:å©ç¨è¦ç´ã«åæããå ´åã¯acceptãé¸æããFinishãã¿ã³ãæ¼ãã¾ãã
èªåçã«ã¤ã³ã¹ãã¼ã«ãéå§ãã¾ãã®ã§ãããã¯ã°ã©ã¦ã³ãã§ã¤ã³ã¹ãã¼ã«ä½æ¥ãè¡ãå ´åã¯Run in Backgroundãé¸æãã¾ãã
ã¤ã³ã¹ãã¼ã«ãçµäºããããYesãã¯ãªãã¯ãã¦Eclipseãåèµ·åãã¾ãã
Python.exeã®ãã¹è¨å®
pythonã¤ã³ã¿ã¼ããªã¿ã¸ã®ãã¹ãéãã¾ãã
Auto Configã§python.exeãæ¤ç´¢ãã¾ãããè¦ã¤ãããªãå ´åã¯æåã§ãã¹ãè¨å®ãã¾ãã
ã©ã¤ãã©ãªã®ãã¹è¨å®
SelectionNeededã®ç»é¢ãéãã®ã§ãããã§ãã¹ãéãããã©ã¤ãã©ãªãé¸æãã¾ãã
(注:ãã®é¨åã¯ç°å¢ã«ãã£ã¦ããªãéãããããã¾ãã...
å¾ããã©ã¤ãã©ãªã®ãã¹ã追å ããã«ã¯ã
Preference>Pydev>interpreter Python>
Library/System PYTHONPATH>New Folderãã追å ã§ãã¾ãã
追å ããªããã°ãããªãã©ã¤ãã©ãªãã¹ã§ããã
ä¾:C:\\Python26\Lib
ãã®2ã¤ã®ãã¹ã¯ã©ãããå¿
é ã®ããã§ã
ããã«DLLï½ã追å ããæ¹ãããã¨æãã¾ãã
Forced Builtins ã¯ã¨ãããããã®ã¾ã¾ã§OK
ã¡ãªã¿ã«ãã¹ãéããã«ããã¸ã§ã¯ããä½æãããã¨ãã¦ããinterpreterã®å ´æãåãããªãã®ã§ä½æãããã¨ã¯ã§ãã¾ããã
ããã¸ã§ã¯ãã®ä½æ
File>New>Project
Pydev>Pydev Project
Project Nameã«ããã¸ã§ã¯ãåãå
¥åãã¦Finishãé¸æãã¾ãã
ããã§æ°ããããã¸ã§ã¯ããä½æããã¾ããã
HelloWorld
ã³ã¼ããè¨è¿°ããå¾ã«ãRun>Run As>Python Runã§å®è¡ãã¦å®äºã§ãã