title: How do I force pip to install a package directly from the Internet not local cache?
body: <p>I was installing the package ibm_db using the command:</p>
  
  <pre><code>pip3 install ibm_db
  </code></pre>
  
  <p>However, there was a power outage and the installation stopped midway.
  Now, the package is available in my system:</p>
  
  <pre><code>pip3 list --local | grep ibm
  DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
  ibm-db (3.0.1)
  </code></pre>
  
  <p>But when I try to import it, it doesn't work.</p>
  
  <pre><code>&gt;&gt;&gt; import ibm_db
  &gt;&gt;&gt; ModuleNotFoundError: No module named 'ibm_db
  </code></pre>
  
  <p>I'm suspecting that something went wrong with the package installation, but every time I try to reinstall (uninstalling, then installing it again) it it uses the locally cached version now, and the problem continues.</p>
  
  <p>I would like to try reinstalling the package straight from the internet, without having to use my local cache, but I don't want to clear the entire local cache.</p>