Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can I install a private module with public dependencies in pip?
    text
    copied!<p>I've found a few answers that relate to <a href="https://stackoverflow.com/questions/3472430/how-can-i-make-setuptools-install-a-package-thats-not-on-pypi">dependency_links</a> but they unfortunately have yet to work for me. I'm writing a python module. It's stored in a private pypi repo, and relies on a few dependencies stored both in the same private repo and the <a href="http://pypi.python.org/pypi" rel="nofollow noreferrer">public pypi repository</a>:</p> <pre><code>setup( # some other setup name = 'mymodule', install_requires = [ 'kazoo', 'privateDependencyA', 'privateDependencyB' ], dependency_links = [ "http://my.private.repo/eggs/#privateDependencyA", "http://my.private.repo/eggs/#privateDependencyB" ]) </code></pre> <p>I store <code>mymodule</code> in my private repository, thus I try to install it:</p> <pre><code>pip install -i http://my.private.repo/eggs/ mymodule </code></pre> <p>That works just fine, but fails to find <code>kazoo</code>, which is a public library. Thus I try the <code>-f</code> flag:</p> <pre><code>$ pip install -i http://my.private.repo/eggs/ -f http://pypi.python.org/ mymodule Downloading/unpacking mymodule Downloading mymoudle-&lt;version&gt;.tar.gz (unknown size): 3.1kB downloaded Running setup.py egg_info for package mymodule Downloading/unpacking kazoo (from mymodule) Could not find any downloads that satisfy the requirement kazoo (from mymodule) Downloading/unpacking kazoo (from mymodule) Could not find any downloads that satisfy the requirement kazoo (from mymodule) </code></pre> <p>How can I download dependencies from the public pypi repository while simultaneously installing my module from my private one?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload