/Usr/lib/python2.6 and/usr/lib64/Python

Source: Internet
Author: User

Interpretation http://lists.fedoraproject.org/pipermail/users/2009-August/087219.html from foreigners

It seems I have two python2.6 folders located in/usr/lib

/Usr/lib64 respectively. Most Python stuff (source) is in
/Usr/lib64/python2.6 but when in installed packages they have been
Put into/usr/lib/python2.6

Architecture-dependent Python modules go in/usr/lib64/Python *, while

Architecture-independent modules go in/usr/lib/Python *. Python's

Module path checks both for modules when importing.

The general meaning is:

If your library has an independent architecture, put it under/usr/lib/python2.6.

If your library is not independent of the architecture, put it under/usr/lib64/python2.6.

Rest assured, when you import

Python will search for these two paths together

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.