tensorflow
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 액세스가 거부되었습니다
pip install tensorflow-gpu 시 발생하는 error 에러 메세지에 나와있는 것처럼, pip install tensorflow-gpu --user 로 옵션을 주어 해결하면 됨!
AttributeError: module 'tensorflow' has no attribute 'get_default_graph'
이것도 tensorflow가 2.0 버전이 되면서 나타나는 증상! keras -> tensorflow.keras로 바꾸기 from keras.models import Sequential, Model이나 import keras와 같은 것들을 모두 from tensorflow.keras.models ~~로 바꿔주면 된다!
ImportError: DLL load failed while importing _pywrap_tensorflow_internal: 지정된 모듈을 찾을 수 없습니다.
pip install tensorflow와 pip install keras를 했음에도 import keras 시 발생하는 error Latest supported Visual C++ Redistributable downloads This article lists the download links for the latest versions of Visual C++ Redistributable packages. docs.microsoft.com Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019인 vc_redist.x64.exe 파일을 설치하면 해결된다..
ImportError: Keras requires TensorFlow 2.2 or higher. Install TensorFlow via pip install tensorflow
tensorflow 설치 후 python을 실행해서 import keras 했을 때의 오류. (ImportError: No module named 'tensorflow.keras) 이것도 마찬가지로 최신 케라스 버전과 기존에 설치된 텐서플로우 버전이 달라서 생기는 오류인 듯. 따라서, pip install --ignore-installed --upgrade tensorflow==1.6.0 후 pip install keras==2.1.5 이렇게 버전 맞춰서 해결! 제대로 설치 되었으면, 이렇게 나온다. cf. 각각 버전 확인 방법 python 실행 후, import tensorflow as tf으로 import 해서, print(tf.__ version __)으로 체크!
ERROR: Cannot uninstall 'wrapt'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
마찬가지로, pip install --upgrade tensorflow 시 나타나는 에러. (텐서플로우 설치 시 타 패키지의 버전 문제) 이 때, pip install --ignore-installed -U wrapt 로 해결하면 된다.