Python3

·Python3
data storage 목적으로 Python 3.7에 등장한 dataclasses 를 아래와 같은 예시로 사용할 수 있습니다.class 재사용성도 높아지기 때문에 데이터를 관리하는 목적이라면 유용해보입니다.# 기본 class 형태class PersonInformation: def __init__( name: str, age: int = 25, address: str = "", phone: str ) -> None: """ Person information class Parameters: name (str): 이름 age (int): 나이 address (str)..
·Python3
💡 문제점과 해결방향일반 ubuntu 환경에서 pip3(혹은 pip)를 통해 tensorflow-gpu를 설치하는 과정에서 버전 충돌이 일어났습니다.conda를 사용하면 편하게 원하는 환경 조건을 만들 수 있지만, 어려운 길을 가봅니다.1. tensorflow-gpu 설치 중 문제사항특정 모듈 설치 문제가 아니라 버전 호환의 문제로 보였습니다.구글링 했을 때, pip 버전에 따른 에러 사항이라고 확인했습니다.아래와 같은 명령어를 실행해보니 21.3.1 버전으로 설치가 됐습니다.pip3 install tensorflow-gpupip install --upgrade pip==20.3pip install --upgrade pippip install --upgrade pip==21.3.1