반응형

2023/10/19 4

AttributeError: module 'numpy' has no attribute 'float'

넘파이 1.24.0부터는 numpy.float, numpy.int를 삭제하여 그렇다고 한다 !pip3 uninstall numpy --yes !pip3 install numpy==1.19.5 그래서 넘파이 1.19.5 버전을 설치했다. uninstall문의 yes 옵션은 uninstall이 끝나지 않아서 권한 문제 같아서 추가한 옵션이다. 이를 추가하면 관리자 권한을 얻게 된다. 이제 넘파이 버전도 낮췄으니 되겠지 했는데 ImportError: numpy.core.multiarray failed to import 이런 에러가 나타난다. 넘파이 버전이 낮아서 생기는 문제라고 한다. !pip3 install numpy==1.23.5 1.23.5를 했더니 더이상 오류가 나타나지 않는다. 1.24부터 완전히 n..

cython_bbox 패키지 설치 오류

Collecting cython_bbox Using cached cython_bbox-0.1.3.tar.gz (41 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'error' error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [..

파이썬 커널과 인터프리터 버전 맞추기

분명 python-opencv 와 여타 패키지들을 설치했지만 Import "패키지" could not be resolved 라며 불러올 수 없었다. 문제점은 파이썬 커널과 인터프리터의 버전 차이였다. 커널은 3.9였지만 인터프리터는 3.11이었다. 인터프리터는 우하단에서 선택해 바꾸거나 vscode 상단 메뉴바에서 view - Command Palette - python: select interpreter로 선택이 가능하다

ByteTrack 패키지에서 import yolox 오류

import yolox print("yolox.__version__:", yolox.__version__) from yolox.tracker.byte_tracker import BYTETracker, STrack from onemetric.cv.utils.iou import box_iou_batch from dataclasses import dataclass @dataclass(frozen=True) class BYTETrackerArgs: track_thresh: float = 0.25 track_buffer: int = 30 match_thresh: float = 0.8 aspect_ratio_thresh: float = 3.0 min_box_area: float = 1.0 mot20: bool = ..

반응형