For faster navigation, this Iframe is preloading the Wikiwand page for pip (軟件包管理系統).

pip (軟件包管理系統)

pip
pip --help的輸出
pip --help的輸出
原作者Ian Bicking
首次发布2011年4月4日,​13年前​(2011-04-04
当前版本
  • 24.1 (2024年6月20日;穩定版本)[1]
編輯維基數據鏈接
源代码库 編輯維基數據鏈接
编程语言Python
操作系统跨平台
平台Python
类型軟件包管理系統
许可协议MIT許可證
网站pip.pypa.io

pip是一個以Python電腦程式語言寫成的軟件包管理系統,他可以安裝和管理軟件包,另外不少的軟件包也可以在「Python軟件包索引」(英語:Python Package Index,PyPI)中找到。[2] 许多Python的发行版中已经预装了pip。

历史

pip在一开始由 Ian Bicking 以 pyinstall 的名字发布,用作 easy_install 的替代品。在 2011 年,Python Packaging Authority (PyPA)组织接手了 pip 的维护。

命令列介面

pip 的其中一個主要特點就是其方便使用的命令列介面,這讓使用者可以透過以下的一句文字命令來輕易地安裝 Python 軟件包:

pip install some-package-name

此外,使用者也可以輕易地透過以下的命令來移除軟件包:

pip uninstall some-package-name

pip 也擁有一個透過「需求」檔案來管理軟件包和其相應版本數目的完整列表之功能,[2]這容許一個完整軟件包組合可以在另一個環境(如另一部電腦)或虛擬化環境中進行有效率的重新創造。這個功能可以透過一個已正確進行格式化的文字檔案和以下的命令來完成:

pip install -r requirements.txt

網頁寄存服務

另一方面,pip也可以透過「Heroku」等軟件支援Python在雲端網頁寄存上的使用。[3]

參考資料

  1. ^ Release 24.1. 2024年6月20日 [2024年6月24日]. 
  2. ^ 2.0 2.1 pip documentation. The pip developers. [2014年3月7日]. (原始内容存档于2010年12月2日) (英语). 
  3. ^ Getting Started with Python on Heroku/Cedar. Dev Center. Heroku. [2014年3月7日]. (原始内容存档于2013年8月6日) (英语). 

參閱

{{bottomLinkPreText}} {{bottomLinkText}}
pip (軟件包管理系統)
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?