본문 바로가기

728x90

분류 전체보기

Amazon Linux 2에서 Python 3.10를 설치하는 방법 Amazon Linux 2에서 Python 3.10를 설치하는 방법 테스트 환경 운영체제 버전 정보 확인 $ cat /etc/os-release NAME="Amazon Linux" VERSION="2" ID="amzn" ID_LIKE="centos rhel fedora" VERSION_ID="2" PRETTY_NAME="Amazon Linux 2" ANSI_COLOR="0;33" CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2" HOME_URL="https://amazonlinux.com/" $ getconf LONG_BIT 64 시스템에 설치된 python version $ python --version Python 2.7.18 $ python3 --version Python.. 더보기
[python] ModuleNotFoundError: No module named 'PIL' python ModuleNotFoundError: No module named 'PIL' 테스트 환경 $ sw_vers ProductName:macOS ProductVersion:12.5 BuildVersion:21G72 $ python --version Python 3.9.13 Module Not Found Error Traceback (most recent call last): File "/Users/.../convert_image.py", line 2, in from PIL import Image ModuleNotFoundError: No module named 'PIL' pillow(PIL) 모듈 설치 pip 명령을 사용하여 pillow(PIL) 모듈 설치 pip3 install Pillow $ .. 더보기
[draft] Windows 11에서 검색 웹 결과를 비활성화하는 방법 Windows 11에서 검색 웹 결과를 비활성화하는 방법로컬 그룹 정책 편집으로 끄기[원도우 키(Win) + R] > gpedit.msc로컬 컴퓨터 정책 > 사용자 구성 > 관리 템플릿 > Windows 구성 요소 > 파일 탐색기 Turn off display of recent search entries in the File Explorer search box(파일 탐색기 검색 상자에 최근 검색 항목 표시 안함_ > 사용(E) 컴퓨터 재부팅레지스트리 값을 추가하여 끄기[원도우 키(Win) + R] > regedit레지스트리 편집기 > 컴퓨터 > HKEY_CURRENT_USER > SOFTWARE > Policies > Microsoft > Windows > Explorer새로 만들기새로 만들기(N) > .. 더보기
[python] 파이썬 로또 번호 생성기 파이썬 로또 번호 생성기 lotto_v1.py 생성 import random ### 로또 번호 생성 def lotto_numbers(): numbers = random.sample(range(1, 46), 6) numbers.sort() print(numbers) ### 로또 시행 횟수 def lotto_count(): count = int(input("시행 횟수 : ")) print("#" * 30) if 0 < count range object range(start, stop[, step]) range() : 시작(포함), 끝(제외), step(옵션) ex) range(1, 46), 6 = 시작(1), 끝(45) 실행 $ python lotto_v1.py 시행 횟수 : 1 ###############.. 더보기
python 모듈 탐색 경로 찾기 python 모듈 탐색 경로 찾기 테스트 환경 $ python --version Python 3.9.13 파이션 3.9의 sys.path 값 - 임포트할 모듈 경로 python import sys for place in sys.path: print(place) $ python Python 3.9.13 (main, Aug 7 2022, 01:19:39) [Clang 13.1.6 (clang-1316.0.21.2.5)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> for place in sys.path: ... print(place) ... /opt/homebrew/Cella.. 더보기
[draft] macOS에 ansible 설치 macOS에 ansible 설치테스트 환경system_profiler SPSoftwareDataType | egrep 'System Version'$ system_profiler SPSoftwareDataType | egrep 'System Version' System Version: macOS 12.5 (21G72)ansible 설치(brew install)ansible searchbrew search ansible$ brew search ansible==> Formulaeansible ansible-cmdb ansible-language-server ansible-lint ansible@2.8 ansible@2.9==> Casksansible-dkansible in.. 더보기
macOS 버전 정보 확인(command) macOS 버전 정보 확인(command) macOS 버전 확인 $ sw_vers -h Usage: sw_vers [-productName|-productVersion|-buildVersion] sw_vers $ sw_vers ProductName:macOS ProductVersion:12.5 BuildVersion:21G72 system_profiler 명령 $ system_profiler -h Usage: system_profiler [-listDataTypes] system_profiler [-xml | -json] [-timeout n] [-detailLevel n] system_profiler [-xml | -json] [-timeout n] [dataType1 ... dataTypeN] -de.. 더보기
[기타] 코드로서의 다이어그램(Diagram as Code) 코드로서의 다이어그램(Diagram as Code) https://blog.bytebytego.com/p/diagram-as-code?fbclid=IwAR1B-4U1aOf7lssmFww7SRJ0GqMsYw8sOwIhuH0ELgYgOqOIT4ban3edJIU Diagram as Code 6 different ways to turn code into beautiful architecture diagrams blog.bytebytego.com 더보기

728x90