问题
I am not interested in installing my package itself but I am interested installing all the dependencies used by my package. Is there a way to do this using setup.py
? It seems setup.py
installs my package and all dependencies.
回答1:
Use the -e flag on pip install
pip install -e .
回答2:
The only way I've found to reliably do this in a straightforward manner is this:
pip install . && pip uninstall `python setup.py --name`
来源:https://stackoverflow.com/questions/30797124/how-to-use-setup-py-to-install-dependencies-only