Eclipse
Tips
●Eclipse+PyDevでの開発
・import で unresolved import error が出たら。
ChainerをEclipse+PyDevで実行し,Chainer Tutorialの Introduction to Chainer を実行する。
すると import data で unresolved import errorが出る。
EclipseのProject →Properties→PyDev – PYTHONPATHのExternal LibrariesタブでAdd source folderで,data.pyが入っているフォルダを指定する。
・Python実行時に SyntaxError: Non-UTF-8 code starting with ‘\x8a’ in file ***.py on line **, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details などと出たら。
Window→Preferences→Content Types→Text→Python FileのDefault encodingのフィールドを下記のようにUTF-8などとする。
●Shift+8[ ( ] が入力できない
キーボードショートカットとかち合っている
Window→Preference→General→KeysでShift+8が絡んでいるものを見つける
Shift+8に関係する ImportとAdd to Working Set を順に選択し、Unbind Command ボタンを押してキーバインドを外す。(但し、Importなどを利用したい場合には別のキーバインドを設定すること)
Eclipseを立ち上げなおせばShift+8が有効になっている(^^V