The reason for this problem is that the ReadLine package problem can be recompiled, replaced
Download python3.4 Source code
https://www.python.org/ftp/python/3.4.0/
Unzip into the source package VI setup.py
Find the code:
Add_dir_to_list (self.compiler.library_dirs, '/usr/local/lib ') add_dir_to_list (Self.compiler.include_dirs, '/usr/ Local/include '
Add two lines of code to the Python package directory before the line code
Add_dir_to_list (self.compiler.library_dirs, '/opt/local/lib ') add_dir_to_list (Self.compiler.include_dirs, '/opt/ Local/include ') add_dir_to_list (self.compiler.library_dirs, '/usr/local/lib ') add_dir_to_list ( Self.compiler.include_dirs, '/usr/local/include ')
Perform
./configure--enable-framework macosx_deployment_target=10.5--with-universal-archs=all$ make
Copy the recompiled readline.so file to
CP readline.so/system/library/frameworks/python.framework/versions/3.4/lib/python3.4/lib-dynload/
Close the command window to reopen the input Python command test
Python 3.4 in the left or right key does not work.