-
<PYTHON>[pip 설치 02]Flower in my dev/Python 2016. 1. 13. 09:52
For RHEL 7.x and CentOS 7.x (x86_64)We have already written post on “Install EPEL repo on CentOS 7 / RHEL 7” with more details. Below given command will install EPEL repo on CentOS 7 / RHEL 7.yum install epel-releaseFor RHEL 6.x and CentOS 6.x (x86_64)rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmFor RHEL 6.x and CentOS 6.x (i386)rpm -ivh http://dl.fedoraproje..
-
<PYTHON>[ipython notebook 사용]Flower in my dev/Python 2015. 11. 24. 11:41
[ipython notebook 사용] 1. ipython을 윈도우에서 사용하게 되면 notebook을 사용하게 되는데 사용하기 전에 먼저 필요 모듈 먼저 설치한다. pip install jinja2 sphinx pyzmq pygments tornado nose 2. iptest C:\>iptest 실행이 안될경우 추가 적으로 pip install requests mock pip install --upgrade ipython 4. ipython notebook 실행 C:\>ipython notebook 여기서 주의할 점은 notebook을 실행할 때는 cmd가 실행된 홈에서 실행해야 한다는 것 아니면 아래 화면을 보게 된다. cmd가 실행된 홈에서 실행하여 사용하시길..
-
<PYTHON>[Windows python 설치]Flower in my dev/Python 2015. 11. 24. 10:18
[Windows python 설치] 1. 파이선 다운로드 및 설치 https://www.python.org/downloads/ 버전은 본인에게 맞는 것으로... 3.x?? 2.x?? 2. 환경변수 추가 cmd에서 바로 추가할 경우C:\> setx PATH "C:\Python27;C:\Python27\Scripts;C:\Python27\Lib\site-packages"시스템 속성에서 추가할 경우 C:\Python27;C:\Python27\Scripts;C:\Python27\Lib\site-packages; 3. ez_install과 pip 설치 (64비트) ez_install 다운로드http://peak.telecommunity.com/dist/ez_setup.py get-pip 다운로드https://ra..
-
<PYTHON>[개발관련패키지]Flower in my dev/Python 2015. 11. 17. 19:32
build-essential python-devautoconf libtool pkg-config python-opengl python-imaging python-pyrex python-pyside.qtopengl idle-python2.7 qt4-dev-tools qt4-designer libqtgui4 libqtcore4 libqt4-xml libqt4-test libqt4-script libqt4-network libqt4-dbus python-qt4 python-qt4-gl libgle3
-
<PYTHON>[pip 설치 01]Flower in my dev/Python 2015. 11. 17. 09:54
[pip 설치] 파이썬을 사용하다보면 pip을 사용하여 프레임워크 또는 모듈들을 설치하게 된다. 그러기위해 먼저 pip을 설치하여야 한다. 아래 사이트에서 다운로드 받으면 되는데... 바로 wget https://bootstrap.pypa.io/get-pip.py 로 받아도 상관없다. 파일을 받았으면 /usr/local/에 원하는 디렉토리명으로 디렉토리를 생성하고 get-pip.py 파일을 옮겨놓고 아래 명령으로 설치하면 완료! $python get-pip.py ************* [추가 for OSX] curl -O http://python-distribute.org/distribute_setup.pysudo python distribute_setup.pysudo easy_install pip
-
<PYTHON>[LOG]Flower in my dev/Python 2015. 9. 11. 16:42
[LOG] 기본적으로 파이썬에서는 logging 모듈을 제공한다. logging 모듈을 사용하여 로그를 남겨보고 logging 모듈에서 제공하는 순환 함수로 로그 파일을 돌려보고 file을 직접 열어서 로그 파일을 돌려본다. 순환방법은 두가지.. 1. 기록되는 파일의 이름이 바뀌지 않는 logging 모듈의 순환2. 기록되는 파일의 이름이 조건에 의해 새로워지는 file 활용 순환 -default logging12345678910111213141516171819202122232425262728293031323334353637383940414243# -*- coding: utf-8 -*-import loggingimport logging.handlers logger = logging.getLogger('f..
-
<PYTHON>[pygoogle]Flower in my dev/Python 2015. 9. 9. 16:42
[pygoogle] - 구글 검색 결과를 돌려주는 모듈 - 설치 : svn으로 소스 다운로드 svn checkout http://pygoogle.googlecode.com/svn/trunk/ pygoogle - 라이브러리 등록 python setup.py buildsudo python setup.py instals - 실행 결과 - ipython 테스트 결과12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061In [1]: from pygoogle import pygoogle In [2]: r = pygoogle('flowerinmyheart') In [3]..