TensorFlow の環境構築のために Anaconda で Python3.6 を入れたあと TensorFlow に対応している Python3.5.2 にダウングレードするために以下のコマンドを実行しました。
Anaconda
1conda install python=3.5.2
ダウングレード終わったあと pythonインタプリタ を実行し試しに関数を作ろうとすると字下げ時にエラーが出ます。
>>> def test(): ... Readline internal error Traceback (most recent call last): File "D:\ProgramData\Anaconda3\lib\site-packages\pyreadline\console\console.py", line 768, in hook_wrapper_23 res = ensure_str(readline_hook(prompt)) File "D:\ProgramData\Anaconda3\lib\site-packages\pyreadline\rlmain.py", line 571, in readline self._readline_from_keyboard() File "D:\ProgramData\Anaconda3\lib\site-packages\pyreadline\rlmain.py", line 536, in _readline_from_keyboard if self._readline_from_keyboard_poll(): File "D:\ProgramData\Anaconda3\lib\site-packages\pyreadline\rlmain.py", line 556, in _readline_from_keyboard_poll result = self.mode.process_keyevent(event.keyinfo) File "D:\ProgramData\Anaconda3\lib\site-packages\pyreadline\modes\emacs.py", line 243, in process_keyevent r = self.process_keyevent_queue[-1](keyinfo) File "D:\ProgramData\Anaconda3\lib\site-packages\pyreadline\modes\emacs.py", line 286, in _process_keyevent r = dispatch_func(keyinfo) File "D:\ProgramData\Anaconda3\lib\site-packages\pyreadline\modes\basemode.py", line 257, in complete completions = self._get_completions() File "D:\ProgramData\Anaconda3\lib\site-packages\pyreadline\modes\basemode.py", line 200, in _get_completions r = self.completer(ensure_unicode(text), i) File "D:\ProgramData\Anaconda3\lib\rlcompleter.py", line 80, in complete readline.redisplay() AttributeError: module 'readline' has no attribute 'redisplay' File "<stdin>", line 2
これの直し方を教えていただけないでしょうか
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/05/28 02:43
2017/05/28 02:49