Skip to Content
Python 技術手冊 第三版
book

Python 技術手冊 第三版

by lex Martelli, Anna Martelli Ravenscroft, Steve Holden
January 2018
Intermediate to advanced
856 pages
17h 17m
Chinese
GoTop Information, Inc.
Content preview from Python 技術手冊 第三版
772
|
25 章 發布擴充功能與程式
工程,那可以考慮 conda
http://bit.ly/2mQFsOM
)( Miniconda
http://bit.
ly/1HVwnq5
)及 Anaconda
https://docs.continuum.io/
)的基礎);如果你
想要一個也能管理你虛擬環境的指令稿安裝器,請考慮 pipsi
http://bit.
ly/2nwZ085
)。
setuptools
setuptools
是一組豐富且有彈性的工具,用來封裝 Python 程式和擴充功
能,以進行發布。我們建議你優先選用它,而非標準程式庫的
distutils
Distribution 及其根
一個
distribution
是被封裝為發布用的單一個封存檔(archive file)的一組
檔案。一個 distribution 可以包含 Python 套件和其他的 Python 模組(如第
6 章中所涵蓋的),還有選擇性的,Python 指令稿、以 C(或其他語言)
編寫的擴充功能、資料檔案,以及帶有詮釋資料(metadata)的輔助檔
案。如果它所包含的所有程式碼都是 Python,一個 distribution 就會被說
純粹
pure
的,若包括非 Python 的程式碼(通常是以 C 編寫的擴充功
能),就是
非純粹
nonpure
的。當一個 distribution 是純粹的,而且可用
v2 v3,無須
2to3
的轉換,我們就說它是
通用
universal
的。
你通常會將一個 distribution ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

利用 Python 进行数据分析(原书第2版)

利用 Python 进行数据分析(原书第2版)

Wes McKinney

Publisher Resources

ISBN: 9789864766819