Error handling/Tensorflow

Tensorflow 설치시 오류.(Could not find a version that satisfies the requirement tensorflow (from versions: none)

Joey_K 2023. 7. 10. 10:59

문제1. pip install tensorflow시 아래와 같은 에러가 발생.

ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow

 

문제2.

이와 같은 오류가 떠서 구글링을 하니 conda로 설치를 해주면 된다길래(아래 참고링크 2), 이렇게 접근하였지만 계속 SSL 인증 문제가 났다.(구글링에서 말하는 내용들을 다 해보았지만 해결이 되지 않았다.)

내 경우에는 먼저 두개의 파일을 복사해서 해결하였다.

 

본인의 anaconda 설치 폴더를 접근하면 (보통 User/사용자/anaconda or Programdata/anaconda3에 있음)

Library가 있고, bin폴더가 있다. 여기에서 아래의 두개의 파일을 복사한뒤 Anaconda3/DLLs에 복사해주니 인증문제는 해결되었다. 

 

libcrypto-1_1-x64.dll

libssl-1_1-x64.dll

 

이 뒤에 콘다로 install을 진행하였다.

콘다에서 설치 방법(참고링크 2), tensorflow 1.9이상부터는 conda설치를 권장한다 하여 pip설치 대신 conda로 설치하였다.

conda update -n base conda
conda update --all
conda install tensorflow

pip install tensorflow //일부로 하지 않았다.

 

 

 

 

 

참고 링크 1(문제2 해결) : https://stackoverflow.com/questions/51892938/ssl-error-while-installing-any-package-from-conda-prompt

 

참고 링크 2(문제2 해결뒤 문제1 해결) : https://blog.naver.com/PostView.nhn?blogId=wlgh325&logNo=221391076543&parentCategoryNo=&categoryNo=&viewDate=&isShowPopularPosts=false&from=postView