Pip notes

From raju

Note:- This page will be migrated to http://www.kamaraju.xyz/dk/pip_notes. Once the migration is done, it will be deleted.

pip cache

reinstall an existing package

search exact match

    pip search $pkg |& grep "^$pkg ("
    

tags | search available versions

Example:

    Default behaviour:
      $ pkg=fastavro
      $ pip search $pkg
      fastavro-codecs (0.1.0.dev0)  - Fastavro codecs.
      fastavro (0.22.3)             - Fast read/write of AVRO files
      

    When the results are grepped:

      $ pip search $pkg |& grep "^$pkg ("
      fastavro (0.22.3)             - Fast read/write of AVRO files
      

easy_install

Easy Install is deprecated. Do not use it. Use pip instead.

Ref:- https://setuptools.readthedocs.io/en/latest/easy_install.html