코드를 그대로 돌렸는데 애로가 나오는 이유가 알고 싶습니다
601
작성한 질문수 1
안녕하십니까 선생님
코드를 그대로 붙여서 실행했는데 다음과 같은 애로 사항이 발생했습니다
tensorflow도 2.3이고 keras도 설치 되어있는데
어떤 제반 사항이 잘못되었는지 알려주시면 감사드리겠습니다.
ImportError Traceback (most recent call last) ~\anaconda3\lib\site-packages\keras\__init__.py in <module> 2 try: ----> 3 from tensorflow.keras.layers.experimental.preprocessing import RandomRotation 4 except ImportError: ~\anaconda3\lib\site-packages\tensorflow\__init__.py in <module> 40 ---> 41 from tensorflow.python.tools import module_util as _module_util 42 from tensorflow.python.util.lazy_loader import LazyLoader as _LazyLoader ~\anaconda3\lib\site-packages\tensorflow\python\__init__.py in <module> 45 from tensorflow.python import data ---> 46 from tensorflow.python import distribute 47 from tensorflow.python import keras ~\anaconda3\lib\site-packages\tensorflow\python\distribute\__init__.py in <module> 27 from tensorflow.python.distribute import one_device_strategy ---> 28 from tensorflow.python.distribute.experimental import collective_all_reduce_strategy 29 from tensorflow.python.distribute.experimental import parameter_server_strategy ~\anaconda3\lib\site-packages\tensorflow\python\distribute\experimental\__init__.py in <module> 24 from tensorflow.python.distribute import parameter_server_strategy ---> 25 from tensorflow.python.distribute import tpu_strategy 26 # pylint: enable=unused-import ~\anaconda3\lib\site-packages\tensorflow\python\distribute\tpu_strategy.py in <module> 42 from tensorflow.python.tpu import device_assignment as device_assignment_lib ---> 43 from tensorflow.python.tpu import tpu 44 from tensorflow.python.tpu import tpu_strategy_util ~\anaconda3\lib\site-packages\tensorflow\python\tpu\tpu.py in <module> 27 from tensorflow.python.compat import compat as api_compat ---> 28 from tensorflow.python.compiler.xla import xla 29 from tensorflow.python.framework import device as pydev ~\anaconda3\lib\site-packages\tensorflow\python\compiler\xla\__init__.py in <module> 22 from tensorflow.python.compiler.xla import jit ---> 23 from tensorflow.python.compiler.xla import xla 24 # pylint: enable=unused-import ~\anaconda3\lib\site-packages\tensorflow\python\compiler\xla\xla.py in <module> 24 ---> 25 from tensorflow.compiler.jit.ops import xla_ops 26 from tensorflow.compiler.jit.ops import xla_ops_grad # pylint: disable=unused-import ~\anaconda3\lib\site-packages\tensorflow\compiler\jit\ops\xla_ops.py in <module> 7 ----> 8 from tensorflow.python import pywrap_tfe as pywrap_tfe 9 from tensorflow.python.eager import context as _context ~\anaconda3\lib\site-packages\tensorflow\python\pywrap_tfe.py in <module> 28 from tensorflow.python import pywrap_tensorflow ---> 29 from tensorflow.python._pywrap_tfe import * ImportError: DLL load failed: 지정된 프로시저를 찾을 수 없습니다. During handling of the above exception, another exception occurred: ImportError Traceback (most recent call last) <ipython-input-1-210029f2541c> in <module> 1 from __future__ import print_function ----> 2 import keras 3 from keras.datasets import mnist 4 from keras.models import Sequential 5 from keras.layers import Dense, Dropout, Flatten ~\anaconda3\lib\site-packages\keras\__init__.py in <module> 4 except ImportError: 5 raise ImportError( ----> 6 'Keras requires TensorFlow 2.2 or higher. ' 7 'Install TensorFlow via `pip install tensorflow`') 8 ImportError: Keras requires TensorFlow 2.2 or higher. Install TensorFlow via `pip install tensorflow`
답변 1
0
안녕하세요?
텐서플로2.3이 설치되어 있다고 하시니 다른 문제가 의심되지만 다시 한번 pip list로 설치여부를 확인해 주세요.
그리고 딥러닝 패키지들이 자주 변경되어 코드가 작동 안하는 경우도 있습니다. 제가 자주 최신 코드로 업데이트를 하지만요.
지금 문제가 되는 프로그램 이름을 알려주시면 점검해 보겠습니다.
감사합니다.
완성자료
0
4
1
섹션5 노션링크 는 따로 없나요?
0
8
1
필기자료 사라졌나요?(실기 일주일만에 안돼서 재도전-_-)
0
10
2
Part 4에서 강의 연관 노션 정보들이 워드파일에 없습니다.
0
14
2
첨부자료 Part 4 코드 확인 부탁드리겠습니다.
0
13
2
질문 드립니다.
0
36
2
노션 링크
0
36
3
26년 1회 실기 해설 강의
0
43
2
노션 권한요청하였습니다 언제쯤 볼수있나요
0
34
2
AAFM CWM_LEVEL_2 Exam Questions 2026: Right Preparation Method
0
24
1
강의 내용 관련 질문드립니다~
0
34
2
퍼플렉시티 최소 결제단위 50달러로 바뀐 것 같습니다.
0
37
2
지원오류
0
197
0
강의자료가 어디있나요?
0
258
0
RNN&BERT 코드 에러 질문입니다!
0
401
4
네이버 영화평 dataset 을 tfds.load 로 올린후 encoder method 까지 사용하려면?
0
434
2
accuracy가 훨씬 낮게 나오는 이유는 무엇인가요??
0
289
1
예제로 쓰인 코드가 어디있는지 모르겠습니다...
0
227
1
ImportError : DLL load failed
0
550
2
deprecated 가 의심되는 코드 하나 더 여쭙겠습니다
0
338
1
IMDB data 소스 코드 에러 사항
0
412
2
자료와 예제코드
0
363
1
LSTM관련하여 질문드릴 수 있을까요....?
0
3662
1
다음을 실행하면 에러가 납니다.
0
1126
1





