/usr/lib/python2.6 和 /usr/lib64/python 的區別

來源:互聯網
上載者:User

摘自老外的解釋http://lists.fedoraproject.org/pipermail/users/2009-August/087219.html

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

/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.

總的意思就是:

如果你的庫是架構獨立的,那麼就放到/usr/lib/python2.6 下

如果你的庫不是架構獨立的,那麼放到/usr/lib64/python2.6下

放心好了,當你import時

python會連這2個路徑一起搜尋的

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.