title: python pip - install from local dir
body: <p>I have to download a git python repo and install since the pypi version is not updated.</p>
  <p>Normally I would do this:</p>
  <pre><code>pip install mypackage
  pip install mypackage[redis]
  </code></pre>
  <p>Now I have the repo cloned in the following folder:</p>
  <p>/opt/mypackage</p>
  <p>So how do I install the below while ensuring that I use the local version, not the pypi version.</p>
  <pre><code>pip --flag /opt/mypackage install mypackage
  pip --flag /opt/mypackage install mypackage[redis]
  </code></pre>
  <p>There are the pip flags available and I don't see how to accomplish :</p>
  <pre><code>Commands:
    install                     Install packages.
    uninstall                   Uninstall packages.
    freeze                      Output installed packages in requirements format.
    list                        List installed packages.
    show                        Show information about installed packages.
    search                      Search PyPI for packages.
    wheel                       Build wheels from your requirements.
    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.
    --log &lt;path&gt;                Path to a verbose appending log.
    --proxy &lt;proxy&gt;             Specify a proxy in the form [user:passwd@]proxy.server:port.
    --retries &lt;retries&gt;         Maximum number of retries each connection should attempt (default 5 times).
    --timeout &lt;sec&gt;             Set the socket timeout (default 15 seconds).
    --exists-action &lt;action&gt;    Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup.
    --trusted-host &lt;hostname&gt;   Mark this host as trusted, even though it does not have valid or any HTTPS.
    --cert &lt;path&gt;               Path to alternate CA bundle.
    --client-cert &lt;path&gt;        Path to SSL client certificate, a single file containing the private key and the certificate in PEM format.
    --cache-dir &lt;dir&gt;           Store the cache data in &lt;dir&gt;.
    --no-cache-dir              Disable the cache.
    --disable-pip-version-check
  </code></pre>