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 技術手冊 第三版
安裝 Jython
|
27
Python
$ cd ~/Py/Python-3.5.2
$ ./configure --prefix=~/py35
接著如前一節的指示執行
make
。一旦你已經完成建置和測試 Python,要實
際安裝所有的檔案,就執行:
$ make install
執行
make install
的使用者必須對目標目錄有寫入權限。取決於你所選
的目標目錄,以及那些目錄的權限,執行
make install
時,你可能需要
使用
su
切換到
root
bin
或其他使用者。用於此目的的一個常見的慣用語
idiom)是
sudo make install
:如果
sudo
提示你輸入密碼,請輸入你目
前使用者的密碼,而非 root 的密碼。一個推薦的替代做法是安裝到虛擬環
境,如後面章節「Python 環境」中所涵蓋的。
安裝 Jython
要下載 Jython,請拜訪 Jython 頁(
http://www.jython.org
)並按下標示
Download
的連結。最新的版本,在本文寫作之時,是 Jython 2.7.0,它
支援 Python 2.7,並以兩個可執行的 JAR 檔案形式提供:一個用來單純執
Jython,另一個用來將它內嵌於 Java 應用程式。依照安裝指示(
https://
wiki.python.org/jython/InstallationInstructions
)來進行安裝。
安裝 IronPython
要安裝 IronPython,你的機器上得有目前的 Common Language ...
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