最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

Python pip 常用命令匯總

 更新時(shí)間:2020年10月19日 11:07:06   作者:Blue·Sky  
這篇文章主要介紹了Python pip 常用命令匯總,幫助大家更好的理解和使用pip命令,感興趣的朋友可以了解下

使用了這么就pip命令,但是一直是簡單使用,很多命令都是用了查,查了用,今天把常用的命令匯總一下,方便使用。

命令:

pip

由上圖可以看到 pip 支持一下命令

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.
 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>        Path to a verbose appending log.
 --proxy <proxy>       Specify a proxy in the form
               [user:passwd@]proxy.server:port.
 --retries <retries>     Maximum number of retries each connection should
               attempt (default 5 times).
 --timeout <sec>       Set the socket timeout (default 15 seconds).
 --exists-action <action>  Default action when a path already exists:
               (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.
 --trusted-host <hostname>  Mark this host as trusted, even though it does
               not have valid or any HTTPS.
 --cert <path>        Path to alternate CA bundle.
 --client-cert <path>    Path to SSL client certificate, a single file
               containing the private key and the certificate
               in PEM format.
 --cache-dir <dir>      Store the cache data in <dir>.
 --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.

1、install

pip install
You must give at least one requirement to install (see "pip help install")

所以這里可以直接使用一下命令實(shí)現(xiàn)在線安裝

pip install <包名> 或 pip install -r requirements.txt
通過使用== >= <= > <來指定版本,不寫則安裝最新版

requirements.txt內(nèi)容格式為:

APScheduler==2.1.2
Django==1.5.4
MySQL-Connector-Python==2.0.1
MySQL-python==1.2.3
PIL==1.1.7
South==1.0.2
django-grappelli==2.6.3
django-pagination==1.0.7

安裝本地安裝包

pip install <目錄>/<文件名> 或 pip install --use-wheel --no-index --find-links=wheelhouse/ <包名>

2、uninstall

卸載安裝包

pip uninstall <包名> 或 pip uninstall -r requirements.txt

升級包

pip install -U <包名>

或:pip install <包名> --upgrade

升級pip

pip install -U pip

使用pip安裝插件的時(shí)候報(bào)錯(cuò):

You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

升級命令: python -m pip install --upgrade pip

3、freeze

pip freeze,查看已經(jīng)安裝的包及版本信息。

導(dǎo)出到指定文件中,如圖,注意 “ > ”,文件名稱隨意。常見按第二種寫法。

4、list

查詢可升級的包

pip list -o

5、show

顯示包所在目錄及信息

6、search

搜索包

pip search <搜索關(guān)鍵字>

以上就是Python pip 常用命令匯總的詳細(xì)內(nèi)容,更多關(guān)于Python pip 常用命令的資料請關(guān)注腳本之家其它相關(guān)文章!

相關(guān)文章

  • Python filter()及reduce()函數(shù)使用方法解析

    Python filter()及reduce()函數(shù)使用方法解析

    這篇文章主要介紹了Python filter()及reduce()函數(shù)使用方法解析,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友可以參考下
    2020-09-09
  • python去除字符串中的空格、特殊字符和指定字符的三種方法

    python去除字符串中的空格、特殊字符和指定字符的三種方法

    本文主要介紹了python去除字符串中的空格、特殊字符和指定字符的三種方法,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2023-02-02
  • 關(guān)于Python排序sort()函數(shù)和sorted()函數(shù)

    關(guān)于Python排序sort()函數(shù)和sorted()函數(shù)

    這篇文章主要介紹了關(guān)于Python排序sort()函數(shù)和sorted()函數(shù),利用Python中的內(nèi)置函數(shù)去實(shí)現(xiàn)直接排序,需要的朋友可以參考下
    2023-04-04
  • python爬取音頻下載的示例代碼

    python爬取音頻下載的示例代碼

    這篇文章主要介紹了python爬取音頻下載的示例代碼,幫助大家更好的理解和學(xué)習(xí)python爬蟲,感興趣的朋友可以了解下
    2020-10-10
  • Django request.META.get()獲取不到header頭的原因分析

    Django request.META.get()獲取不到header頭的原因分析

    這篇文章主要介紹了Django request.META.get()獲取不到header頭的原因分析,具有很好的參考價(jià)值,希望對大家有所幫助。一起跟隨小編過來看看吧
    2021-04-04
  • Python閉包函數(shù)定義與用法分析

    Python閉包函數(shù)定義與用法分析

    這篇文章主要介紹了Python閉包函數(shù)定義與用法,結(jié)合實(shí)例形式分析了Python閉包函數(shù)的功能、定義、使用方法及相關(guān)操作注意事項(xiàng),需要的朋友可以參考下
    2018-07-07
  • python自動化測試selenium核心技術(shù)處理彈框

    python自動化測試selenium核心技術(shù)處理彈框

    這篇文章主要為大家介紹了python自動化測試selenium核心技術(shù)處理彈框的示例詳解,有需要的朋友可以借鑒參考下,希望能夠有所幫助
    2021-11-11
  • python中while和for的區(qū)別總結(jié)

    python中while和for的區(qū)別總結(jié)

    在本篇內(nèi)容里小編給大家分享的是關(guān)于python中while和for的區(qū)別以及相關(guān)知識點(diǎn),需要的朋友們可以學(xué)習(xí)下。
    2019-06-06
  • Python Excel vlookup函數(shù)實(shí)現(xiàn)過程解析

    Python Excel vlookup函數(shù)實(shí)現(xiàn)過程解析

    這篇文章主要介紹了Python Excel vlookup函數(shù)實(shí)現(xiàn)過程解析,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友可以參考下
    2020-06-06
  • Scrapy-Redis結(jié)合POST請求獲取數(shù)據(jù)的方法示例

    Scrapy-Redis結(jié)合POST請求獲取數(shù)據(jù)的方法示例

    這篇文章主要給大家介紹了關(guān)于Scrapy-Redis結(jié)合POST請求獲取數(shù)據(jù)的相關(guān)資料,文中通過示例代碼介紹的非常詳細(xì),對大家學(xué)習(xí)或者使用Scrapy-Redis具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面來一起學(xué)習(xí)學(xué)習(xí)吧
    2019-05-05

最新評論

新绛县| 卓资县| 阳春市| 万宁市| 黄平县| 娱乐| 东源县| 汝南县| 绥滨县| 陈巴尔虎旗| 延庆县| 青浦区| 永泰县| 福鼎市| 福建省| 西平县| 锦屏县| 鹰潭市| 柘城县| 剑川县| 中西区| 桓台县| 利辛县| 长子县| 沛县| 莫力| 灵丘县| 和平区| 丹阳市| 丰台区| 汉沽区| 南投市| 罗城| 怀化市| 广灵县| 若尔盖县| 郯城县| 修文县| 涿州市| 长汀县| 长岛县|