반응형

프로그래밍/기타 17

[오류 해결] 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed

pip로 설치하다보면 아래와 같은 에러가 날 때가 있다. 필자의 경우는 회사 컴퓨터로 하다보니 ssl 오류가 난다. WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1122)'))': /whl/torch_stable.html 해결방법은 아래와 같다. pip --trusted-host..

[Pytorch] Variable 에 관하여

책이나 예제를 보면 아래와 같이 Variable 처리를 하는 내용이 종종 나온다. from torch.autograd import Variable h_0 = Variable(torch.zeros(self.num_layers * 2, x.size(0), self.hidden_size).to(device)) 일단 책의 내용은 Variable로 감싸진 텐서는 .backward()가 호출될때 자동으로 기울기가 계산된다라고 설명이 되어있다. 그래서 기울기 계산이 안되면 어떤 일이 벌어질까 싶어서 Variable을 제거해 보았고 분명 기울기가 계산이 안되면 문제가 발생해야하는데 결과는 이전과 같았다. 그래서 찾아본 결과가 아래와 같다. https://pytorch.org/docs/stable/autograd.htm..

[오류 해결] OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.

Python 으로 pyplot을 할때 가끔 아래와 같은 에러가 난다. OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized. OMP: Hint This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance or cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the pr..

[pytorch] 개발환경

Anaconda3 > Anaconda Prompt 실행 가상환경 conda create -n torch_book python=3.9.0 가상환경 리스트 conda env list 가상환경 활성화 activate torch_book 가상환경 삭제 conda env remove -n torch_book 커널 설치 pip install ipykernel 가상환경에 커널 연결 python -m ipykernel install --user --name torch_book --display-name "torch_book" 파이토치 설치 conda install pytorch==1.9.0 torchvision==0.10.0 torchaudio==0.9.0 -c pytorch 주피터 노트북 설치 pip install ..

[Dbeaver] CSV 데이터 가져오기 한글 깨짐 현상 방지

Dbeaver에는 엑셀 파일을 DB로 가져오기에 대한 설명에 대해 기술하겠다. 먼저 CSV 파일을 가져오는데 반드시 메모장에 CSV 내용 전체를 붙여 넣었다가 그걸 다시 카피해서 CSV 파일에 넣는다. 만약 이렇게 하지 않으면 한글 파일이 DB에 깨져서 들어간다. 1. 테이블을 오른쪽 버튼 클릭하여 데이터 가져오기를 누른다. 2. 다음을 눌러 가져오고자 할 CSV 파일을 선택 3. 이미 존재하는 Table일 경우는 데이터 형식을 안정해줘도 되지만 만약 신규 Table일 경우 각 컬럼의 데이터 타입을 지정해줘야한다. 아래와 같이 컬럼 버튼 클릭 4. 데이터 타입에서 원하는 타입으로 변경해준다. 5. 완료후 계속 다음 누른후 Start하면 완료!

반응형