목록2018/01 (5)
Knowledge Map
RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6 텐솔플로 최신 버전이 3.6과 맞지 않아서 그런것이다. 해결책은 아래와 같다. Wait for an official binary to be released for Python 3.6Ignore the warning, it seems to work.Don't use tensorflow 1.4.0 instead use 1.3.0 pip3 install tensorflow==1.3.0.Install an unofficial tensorflow binary compatible w..
https://stackoverflow.com/questions/6539881/python-converting-from-iso-8859-1-latin1-to-utf-8 python3에서 바이트 값은 json.dumps를 할 경우 에러가 발생한다.물론 문자열로 변환하면 되지만 그렇게 될 경우 손실이 발생되어 이후 처리에서 제대로 되지 않을 가능성이 존재한다. 이럴때 decode('iso-8859-1') 로 하게 되면 바이트를 손실없이 문자열로 변환할 수 있으니 좋다.
https://wiki.python.org/moin/HandlingExceptions import sys try: untrusted.execute() except: # catch *all* exceptions e = sys.exc_info()[0] write_to_page( "Error: %s" % e ) 파이썬에서는 원래 특정 에러에 대한 except를 처리하지만, 경우에 따라서 모든 에러들을 체크해야 할 필요가 있다.그럴때 이것을 사용하면 어떤 이름의 에러가 났는지 알수 있다.
gulp에서 gulp-uglify 는 따로 처리하지 않고 그냥 쓰면 es6문법이 파일안에서 존재할 경우 에러가 발생한다. 다른 에러 날 것이 하나도 없는데 에러가 난다면 이것을 의심해 보는 것도 괜찮을거 같다. events.js:183 throw er; // Unhandled 'error' event ^ GulpUglifyError: unable to minify JavaScript
맥프레 macOS High Sierra 에는 python 2.7.10이 기본적으로 설치가 되어 있다.여기서 pandas를 설치하려고 하면 다음과 같이 에러가 뜬다. EPRECATION: Uninstalling a distutils installed project (numpy) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project. Uninstalling numpy-1.8.0rc1: 그래서 numpy를 설치하려고 하면 아래와 같이 뜬다. Requirement alrea..