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

Python 技術手冊 第三版

by lex Martelli, Anna Martelli Ravenscroft, Steve Holden
January 2018
Intermediate to advanced content levelIntermediate to advanced
856 pages
17h 17m
Chinese
GoTop Information, Inc.
Content preview from Python 技術手冊 第三版
Python 環境
|
219
驗性版本),
pip
都仍然能夠為你安裝它:只要執行
pip install --no-index
--find-links=/tmp/mypack
,剩下的
pip
就會為你完成。
Python Wheels(與 Eggs
Python
wheels
(類似它們的前身
eggs
,後者仍然受到支援但不建議用於未
來的開發工作)是包含結構化詮釋資料(structured metadata)以及 Python
程式碼的一種封存格式(archive format)。這兩種格式,特別是 wheels
提供了封裝與發布你 Python 套件絕佳的方式,而且
setuptools
(加上
wheel
擴充功能,當然能以
pip install wheel
輕易地安裝)能與它們合
作無間。你可以在線上(
http://pythonwheels.com/
)和第 25 章讀到它們的
資訊。
Python 環境
典型的 Python 程式設計師同時會進行數個專案,其中每一個都有它自己的
依存關係(dependencies,通常是第三方程式庫與資料檔案)。當所有專案
的依存關係都安裝到相同的 Python 直譯器中,很難判斷哪個專案用到哪些
依存關係,而且也沒辦法處理特定依存關係有版本衝突的專案。
早期的 Python 直譯器是根據這個假設所建置:每個電腦系統上都會安裝
「一個 Python 直譯器」,而在該系統上運行的所有 Python 程式都用它來處
理。作業系統也開始在它們的基本安裝中包括 Python,但因為
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.
Start your free trial

You might also like

測試驅動開發|使用 Python

測試驅動開發|使用 Python

Harry J.W. Percival
Linux 内核观测技术BPF

Linux 内核观测技术BPF

David Calavera, Lorenzo Fontana

Publisher Resources

ISBN: 9789864766819