新聞中心
這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
創(chuàng)新互聯(lián)Python教程:pythonpip是什么
我們知道python中有著許多包的存在,那么在安裝和管理的工具上,我們可以使用pip來完成。當(dāng)然python安裝包的工具有很多中類型,本篇著重于pip的講解,下面我們就來一起看看它是如何對(duì)包進(jìn)行管理的吧。

1、說明
pip是一個(gè)安裝和管理Python包的工具,python安裝包的工具有easy_install, setuptools, pip,distribute等。而pip是easy_install的替代品。pip作為包管理器。這意味著它是一個(gè)工具,允許你安裝和管理不屬于標(biāo)準(zhǔn)庫的其他庫和依賴。
2、使用
安裝后在命令行中鍵入:pip+ 回車,就會(huì)出現(xiàn)如下使用說明:
Usage: pip[options] Commands: install Install packages. download Download packages. uninstall Uninstall packages. freeze Output installed packages in requirements format. list List installed packages. show Show information about installed packages. check Verify installed packages have compatible dependencies. config Manage local and global configuration. search Search PyPI for packages. wheel Build wheels from your requirements. hash Compute hashes of package archives. completion A helper command used for command completion. help Show help for commands. General Options: -h, --help Show help. --isolated Run pip in an isolated mode, ignoring environment variables and user configuration. -v, --verbose Give more output. Option is additive, and can be used up to 3 times. -V, --version Show version and exit. -q, --quiet Give less output. Option is additive, and can be used up to 3 times (corresponding to WARNING, ERROR, and CRITICAL logging levels). --log Path to a verbose appending log. --proxy Specify a proxy in the form [user:passwd@]proxy.server:port. --retries Maximum number of retries each connection should attempt (default 5 times). --timeout Set the socket timeout (default 15 seconds). --exists-action Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort). --trusted-host Mark this host as trusted, even though it does not have valid or any HTTPS. --cert Path to alternate CA bundle. --client-cert Path to SSL client certificate, a single file containing the private key and the certificate in PEM format. --cache-dir Store the cache data in . --no-cache-dir Disable the cache. --disable-pip-version-check Don't periodically check PyPI to determine whether a new version of pip is available for download. Implied with --no-index. --no-color Suppress colored output
以上就是python pip的內(nèi)容分享,相信大家已經(jīng)知道pip命令的使用了,希望對(duì)初學(xué)python的人有所幫助。更多Python學(xué)習(xí)推薦:PyThon學(xué)習(xí)網(wǎng)教學(xué)中心
(推薦操作系統(tǒng):windows7系統(tǒng)、Python 3.9.1,DELL G3電腦。)
文章題目:創(chuàng)新互聯(lián)Python教程:pythonpip是什么
地址分享:http://fisionsoft.com.cn/article/dphjheh.html


咨詢
建站咨詢
