python 및 머신러닝 교육, 슬로우캠퍼스

PyCharm은 Django, Google App Engine 등을 지원하며, Javascript, HTML편집까지

지원하는 최고의 IDE로 보입니다.









---- OLD ---

Ninja 와 PyScripter 를 설치하여 보았습니다.

PyScripter 가 화면이 훨씬 깔끔하고, Editor의 폰트 설정, 디버깅 모드 등 기능이 더 다양합니다.


PyScripter  http://code.google.com/p/pyscripter/

Ninja http://ninja-ide.org/


PyScripter 실행시 아래와 같은 오류가 발생할 수 있습니다.

"UnicodeEncodeError: 'ascii' codec can't encode character ~~~"  


해결방법:

C:\Python27\Lib\site.py 의 내용 중  한글자만 수정하면 됩니다.



def setencoding():

    """Set the string encoding used by the Unicode implementation.  The

    default is 'ascii', but if you're willing to experiment, you can

    change this."""

    encoding = "ascii" # Default value set by _PyUnicode_Init()

   # 원래 0 으로 되어있던 것을 1로 수정하면 된다. 

   # Windows의 locale에 따른 처리를 가능하게 함.

    if 1:  

        # Enable to support locale aware default string encodings.

        import locale

        loc = locale.getdefaultlocale()

        if loc[1]:

            encoding = loc[1]

    if 0:

        # Enable to switch off string to Unicode coercion and implicit

        # Unicode to string conversion.

        encoding = "undefined"

    if encoding != "ascii":

        # On Non-Unicode builds this will raise an AttributeError...

        sys.setdefaultencoding(encoding) # Needs Python Unicode build !





WRITTEN BY
manager@
Data Analysis, Text/Knowledge Mining, Python, Cloud Computing, Platform

,