4 ms·
Not necessarily. pip cannot resolve all dependencies. For example, if a package specifies both numpy and pandas as a requirement, installation will fail. This i
by andreasvc 12y ago
Not necessarily. pip cannot resolve all dependencies. For example, if a package specifies both numpy and pandas as a requirement, installation will fail. This is because pandas in turn requires numpy, and pip does not resolve the dependencies in a single step, you need to install numpy first and then go on with pandas.
- yaph 12y agoIn that case, couldn't you just specify Pandas as a dependency and Numpy would automatically be installed?
- andreasvc 12y agoI think not, I think the problem is that it is a build-time dependency and pip wants to resolve all dependencies before installation begins. See https://github.com/pypa/pip/issues/1386 https://github.com/pypa/pip/issues/1386 (oddly, the issue is closed, while the problem is acknowledged).
- yaph 12y agoI see, thanks for pointing to that issue. The other issue referred https://github.com/pypa/pip/issues/988 https://github.com/pypa/pip/issues/988 is still open, so I guess they work on sorting this out.