AttributeError: module 'tensorflow' has no attribute 'variable'

Study/Coding_Python|2019. 9. 4. 10:59
728x90
반응형

AttributeError: module 'tensorflow' has no attribute 'variable'

 

위의 에러가 나와서 현재 작업들을 진행 해봄

 

 

tensorflow 지우기

 

pip uninstall tensorflow

 

tensorflow 다시 설치하기

 

pip install tensorflow

 

설치중 

 

WARNING: You are using pip version 19.1.1, however version 19.2.3 is available.

You should consider upgrading via the 'python -m pip install --upgrade pip' command.

 

이게 떠서 다시 설치를 진행함

 

 

---------------------------------

 

문제는 keras와 tensorflow의 동일한 버전으로 구현이 안되는데 다시 설치하면 된다네요. 

 

저는 keras를 설치 안해서 그런것 같아요

 

pip install --upgrade pip setuptools wheel

 

pip install -I tensorflow

 

pip install -I keras

 

위와 같이 진행을 하고 있습니다...만

 

ERROR: astroid 2.2.5 requires typed-ast>=1.3.0; implementation_name == "cpython", which is not installed.

 

이게 나오고

 

Installing collected packages: gast, numpy, wheel, six, grpcio, werkzeug, setuptools, protobuf, absl-py, markdown, tensorboard, termcolor, h5py, keras-applications, wrapt, astor, google-pasta, tensorflow-estimator, keras-preprocessing, tensorflow

 

이게 나오고

 

ERROR: Operation cancelled by user

 

이렇게 나오네요....

 

728x90
반응형

댓글()