목록python (6)
IT Log

Ray 홈페이지 : https://docs.ray.io/en/master/index.html Ray 분산 애플리케이션을 구축하기위한 단순하고 범용적인 API를 제공 Ray Install pip install -U ray # FutureWarning: Not all Ray CLI dependencies were found. # In Ray 1.4+, the Ray CLI, autoscaler, and dashboard will only be usable via `pip install 'ray[default]'`. # Please update your install command # 위 오류가 발생 시 아래 명령 실행 pip install 'ray[default]' Ray API API 설명 ray.init..

iterable : 한 번에 하나씩 돌려줄 수 있는 객체로, 등 ※ 해당 객체가 iterable인지 아닌지 확인하는 방법 > 해당 객체가 iterable이면 True를 반환하고, 아니면 False를 반환 obj = [1,2,3,4,5] import collections isinstance(obj, collections.abc.Iterable) 또는 from collections.abc import Iterable isinstance(obj, Iterable)

1. Install Package 설치 linux는 터미널에서, Window는 cmd창에서 실행 # Python2.x pip install selenium # Python3.x pip3 install selenium Driver 설치 Firefox : github.com/mozilla/geckodriver/releases Chrome : sites.google.com/a/chromium.org/chromedriver/downloads linux는 다운받을 파일에서 우클릭하여, '링크 주소 복사'를 한 뒤 아래와 같이 Download하고, Window는 해당 파일을 클릭하여 Download # Firefox wget https://github.com/mozilla/geckodriver/releases/do..

System requirements Requirement Minimum Recommended RAM 4GB 8GB Disk 공간 2.5GB, cache를 위한 1GB 최소 5GB의 여유 공간이 있는 SSD 모니터 해상도 1024x768 1920x1080 운영체제 Microsoft Windows 8 이상 macOS 10.13 이상 Gnome, KDE 또는 Unity DE를 지원하는 모든 Linux 배포판 최신 64 비트 버전의 Windows, macOS 또는 Linux (예 : Debian, Ubuntu 또는 RHEL) 1. PyCharm Download PyCharm Download : https://www.jetbrains.com/ko-kr/pycharm/download/#section=windows ..

Python은 Python 홈페이지 : https://www.python.org/downloads/ Anaconda 홈페이지 : https://www.anaconda.com/products/individual 위 2곳 중 한 곳을 선택하여 Download 할 수 있습니다. 두 방법의 차이는 1번의 경우 pip 패키지만 가진 상태로 시작하하게 됩니다. pip이외의 패키지 사용이 필요한 경우에는 추가적으로 설치가 필요합니다. 2번의 경우에는 pip이외의 numpy, pandas 등 여러가지 패키지와 라이브러리를 가진 상태로 시작하게 됩니다. 따라서 본인이 진행하고자 하는 목적에 맞는 설치 방법을 선택하시면 될 것 같습니다. !둘 중 하나만 설치하세요 1. Python Download URL : https:/..

원인 : 들여쓰기에서 탭과 공백의 일관성없는 사용 # 아래와 같이 들여쓰기를 띄어쓰기와 tab을 혼용해서 사용하게 되면 오류가 발생 # TISTORY에서는 들여쓰기 정도가 다르게 보이지만, Python 에서는 들여쓰기에 정도가 같게 보임 for i in range(10): x = i + 1 # 띄어쓰기 4번 y = x + 1 # tab 1번 해결 방법 : 들여쓰기를 하나로 통일해서 사용 # 띄어쓰기 for i in range(10): x = i + 1 # 띄어쓰기 4번 y = x + 1 # 띄어쓰기 4번 # tab for i in range(10): x = i + 1 # tab 1번 y = x + 1 # tab 1번