Pip notes

From raju

reinstall an existing package

    pip install --upgrade --force-reinstall <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