정말 여러 사이트를 뒤져보면서 cuda깔고 cudnn깔고 해도 안됐지만..
한방에 가능한 유튜브 링크를 전달받아 해결했습니다!
중간에 에러가 한 번 떴지만,
쉽게 해결 가능합니다.
유튜브 링크 :
에러 :
import tensorflow as tf 코드 실행시 발생
a module that was compiled using numpy 1.x cannot be run in numpy 2.0.0 as it may crash. to support both 1.x and 2.x versions of numpy, modules must be compiled with numpy 2.0. some module may need to rebuild instead e.g. with 'pybind11>=2.12'. if you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. we expect that some modules will need time to support numpy 2.
anaconda terminal에서 pip list를 확인하면 이미 tensorflow가 있는데,
왜 오류가 뜨는 걸까.. 해서 구글링 해보니,
numpy를 uninstall 하고 다시 install하면 된다고 함.
따라서
pip uninstall numpy
pip install numpy==1.26.4
이렇게 실행시키니, 영상의 GPU Test 문이 다 실행되었다!
'AI > 기계학습' 카테고리의 다른 글
text 파일(.txt) dataframe으로 읽어오기 in Python (0) | 2024.07.08 |
---|---|
Pillow(PIL) -이미지 처리 위한 라이브러리 (0) | 2024.06.01 |
이미지 데이터 - CNN/RNN (0) | 2024.05.31 |
Tensorflow 선형회귀/비선형회귀 (0) | 2024.05.27 |
딥러닝 학습의 문제점 (0) | 2024.05.22 |