PyChar에서 Keras 사용하면 training progress가 다음과 같이 한 줄이 아닌 여러 줄로 출력된다. 이 문제를 해결하려면 PyCharm 옵션을 다음과 같이 수정해주면 된다. 수정 후 다시 실행해보면 다음과 같이 한 줄로 출력되는 것을 확인할 수 있다.
Category: Python
<test.py> print(“Hello Everyone”) <Bash shell> a=$(python test.py) echo $a <Result> Hello Everyone
su yum install yum-utils yum-builddep python curl -O https://www.python.org/ftp/python/3.5.3/Python-3.5.3.tgz tar xvf Python-3.5.2.tgz cd Python-3.5.3 ./configure make -j32 make install exit
import site site. getsitepackages()[0]
typedef float real; => NameError: name ‘real’ is not defined %pythoncode %{ real = float %} => it works!
OS: CentOS 5.5 Python: 2.65 SWIG: 2.0.1 In function ‘PyTypeObject* _PySwigObject_type()’: warning: missing initializer for member ‘_typeobject::tp_version_tag’ 위와 같은 warning이 발생할 수 있다. [원인] tp_version_tag라는 것이 Python 2.6 이후 version의 PyTypeObject에 새롭게 생긴 field인데, SWIG가…