Python

개발/문제풀이

[BOJ 27211, Python] 도넛 행성 풀이

import sys from collections import deque input = sys.stdin.readline dx = [0,0,1,-1] dy = [1,-1,0,0] matrix = [] n,m = map(int,input().split()) for _ in range(n): matrix.append(list(map(int,input().split()))) count = 0 def bfs(sx,sy): queue = deque() queue.append((sx,sy)) matrix[sy][sx] = 1 while queue: nx,ny = queue.popleft() for i in range(4): tx,ty = nx+dx[i], ny+dy[i] if(tx == -1): tx = m - 1..

개발/이슈 해결 모음

[Python / MediaPipe] M1 Macbook Mediapipe 설치 방법

개발 환경 : M1 MacBook Pro 16-inch (2021) 내 터미널에서 아무리 pip3 install mediapipe 라고 쳐도 자꾸만 아래와 같은 오류가 떴었다. ERROR : Could not find a version that satisfies the requirement mediapipe (from versions: none) ERROR: No matching distribution found for mediapipe 처음에는 파이썬 버전 문제인가 싶어 virtualenv로 버전도 낮춰보고 pyenv로 여러 버전도 설치해봤는데 mediapipe가 3.7.9 이하에서만 잘 작동한다고 구글링에서 얼핏 봐서 3.7.9로 환경을 맞춘다음 pip install mediapipe-silicon을..

Junhyung-Choi
'Python' 태그의 글 목록