Python 3.4 in the left or right key does not work.

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.