본문 바로가기

코딩 에러

(45)
AttributeError: module 'tensorflow' has no attribute 'get_default_graph 에러 이건 직접 고쳐야한다. 나의 경우에는 텐서플로우 2.0 케라스 2.2일때 에러가 났었다. 이건 역시 서로 버젼이 안맞기 때문에 생겨난 것이다. /home/"사용자이름"/anaconda3/envs/"프로젝트이름"/lib/python3.6/site-packages/keras/backend/tensorflow_backend.py 여기 tensorflow_backend.py를 고쳐주면 된다. get_default_graph를 아마 tf.get_default_graph 로 사용하고 있을 것이다. 이것을 tf.compat.v1.get_default_graph 로 바꿔야한다. 그리고 저장. 만약 여기서 다른 텐서플로우를 사용할 경우에는 다시 바꿔야한다. 아니면 그냥 애초에 tensorflow_backend.py에다가..
WARNING: The conda.compat module is deprecated and will be removed in a future release. 에러 이거 그냥 아나콘다 버젼문제 때문에 그런 거에요. 버그인데, 4.6.12 버젼부터 고쳤다고 합니다.
ValueError: invalid literal for int() with base 10: '1350.0' ValueError: invalid literal for int() with base 10: '1350.0' 이런 에러가 떴다. string을 int로 바꾸는 데에 있어서 문제가 생긴 것. 왜냐? 실수로 된 string을 int로 바꾸려고 하기 때문 해결방법 기존 : int( 실수 스트링 ) ==> 에러 해결 : int ( float ( 실수 스트링) ) ==> 해결
Could not install packages due to an EnvironmentError: [Errno 13] Permisfo'Consider using the `--user` option or check the permissions. 오류 해결 방법 나 같은 경우는 cffi 설치하려니까 오류가 났었는데 python3 -m pip install --user "패키지 이름" 치면 됨
NotImplementedError: It is not currently possible to manually set the aspect on 3D axes 에러 해결 가끔 3D를 조작할 때, 이런 에러가 뜨는 경우가 있다. 'It is not currently possible to manually set the aspect ' NotImplementedError: It is not currently possible to manually set the aspect on 3D axes 이유는 정확히 모르겠지만, matplotlib를 2버젼으로 바꾸면 된다. 아마 3버젼은 python3으로만 되어야한다나 뭐라나... 현재 버젼이 3으로 되어있는 사람들은 2로 바꾸자 pip install matplotlib==2.2 [english] when we do something 3D in python, this error message can rise. 'It is not curr..
pydensecrf 설치 오류/ install fail pydensecrf는 git 어쩌구 하면 된다더니 자꾸 설치가 안됬다 나는... cython을 깔아야된다고는 하는 데, 깔았는 데도 안되서 이렇게 하니까 해결 우선 cython을 설치함 1. pip install cython 그리고 2. conda install -c conda-forge pydensecrf 이렇게 하니까 해결... 이거 한 뒤에 pip install pydense어쩌구 하지 말것. 그냥 이대로도 해결 됨.
numpy 배열 모두 출력 또는 ... 출력 / print all numpy arrays import numpy as np np.set_printoptions(threshold=np.nan) 해주면 됨. // for others import numpy as npnp.set_printoptions(threshold=np.nan) done. right?or you could set threshold option like this threshold = np.inf
우분투 boost 설치 여러 자료를 봤지만 이상하게 다 안됫따. 우선 여기를 들어오는 사람들은 분명 wget 어쩌구를 통해서 본인에게 알맞은 버전으로 다운은 받았으리라 본다. 근데 이상하게 tar xzvf를 해도 안될 것이다. 다 그렇게 했는 데 이상하게 나는 안됫다. 해결 방법 : tar xvf download 하면 댐.;;; 그리고 나머지는 http://nomorefaster.blogspot.com/2014/03/linux-boost.html 여기를 따라하면 된다.다른 문서보다 여기가 제일 정확했다. 그리고 혹시 num? 어쩌구 에러가 뜨는 사람들은 단순히 버전문제이니 너무 스트레스 받지말자.그 num 어쩌구가 없다고 뜰 텐데 그거는 16.5였나? 부터 사라진거라서 그 전꺼를 설치해야한다고 한다. 16.3을 설치하면 해결하..