3 ms·
Why are you using a requirements.txt if you have a setup.py that lists them? `pip install -e` or `setup.py install` should just work in that case.
by joshuamorton 9y ago
Why are you using a requirements.txt if you have a setup.py that lists them? `pip install -e` or `setup.py install` should just work in that case.
- rajathagasthya 9y agoWhat if you have your own package index? You can use `--index-url` in requirements.txt to specify that.
- joshuamorton 9y agoYou can use `--index-url` when calling pip: https://pip.pypa.io/en/stable/reference/pip_wheel/#index-url https://pip.pypa.io/en/stable/reference/pip_wheel/#index-url You can also use `dependency_links` in your setup.py to specify this, which allows deps on github etc.
- cat199 9y agoYou don't always want to install the actual package necessarily (e.g. dev) - using requirements separately lets you install the deps but not the package...