乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      [Python] pip 簡(jiǎn)明指南

       just_person 2014-11-20

       1. 使用 apt 安裝:

      $ sudo apt-get install python-pip

       

        截止本文落筆,apt 安裝 pip 版本為 1.0,但 pip 最新發(fā)行版本為 1.5.6

      $ pip --version
      pip 1.0 from /usr/lib/python2.7/dist-packages (python 2.7)

       

        pip 1.0 特性:

      復(fù)制代碼
      $ pip -h
      Usage: pip COMMAND [OPTIONS]
      
      Options:
        --version             show program's version number and exit
        -h, --help            Show help
        -E DIR, --environment=DIR
                              virtualenv environment to run pip in (either give the
                              interpreter or the environment base directory)
        -s, --enable-site-packages
                              Include site-packages in virtualenv if one is to be
                              created. Ignored if --environment is not used or the
                              virtualenv already exists.
        -v, --verbose         Give more output
        -q, --quiet           Give less output
        --log=FILENAME        Log file where a complete (maximum verbosity) record
                              will be kept
        --proxy=PROXY         Specify a proxy in the form
                              user:passwd@proxy.server:port. Note that the
                              user:password@ is optional and required only if you
                              are behind an authenticated proxy.  If you provide
                              user@proxy.server:port then you will be prompted for a
                              password.
        --timeout=SECONDS, --default-timeout=SECONDS
                              Set the socket timeout (default 15 seconds)
      
      Commands available:
        bundle: Create pybundles (archives containing multiple packages)
        freeze: Output all currently installed packages (exact versions) to stdout
        help: Show available commands
        install: Install packages
        search: Search PyPI
        uninstall: Uninstall packages
        unzip: Unzip individual packages
        zip: Zip individual packages
      復(fù)制代碼

       

        2. 使用 get-pip.py 安裝:

      $ wget https://bootstrap./get-pip.py
      ...
      
      $ sudo python get-pip.py
      ...

       

        3. 升級(jí)

      # On Linux or OS X
      $ sudo pip install -U pip
      
      # On Windows
      $ python -m pip install -U pip

       

      使用

        1. 安裝 package:

      $ pip install SomePackage             # latest version
      $ pip install SomePackage==1.0.4      # specific version
      $ pip install 'SomePackage>=1.0.4'    # minimum version

       

        1.1. 升級(jí)已安裝包:

      $ sudo pip install -U chardet

       

        2. 卸載 package:

      $ sudo pip uninstall bottle

       

        3. 搜索 package:

      $ pip search bottle

       

        4. 列出已安裝 package:

      $ pip list

       

        4.1. 列出過(guò)期 package:

      $ pip list --outdated

       

        5. 顯示已安裝包詳細(xì)信息

      $ pip show gevent
      ---
      Name: gevent
      Version: 1.0.1
      Location: /usr/local/lib/python2.7/dist-packages
      Requires: greenlet

        本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
        轉(zhuǎn)藏 分享 獻(xiàn)花(0

        0條評(píng)論

        發(fā)表

        請(qǐng)遵守用戶 評(píng)論公約

        類似文章 更多