Exclude dependencies in env file?

0 views
Skip to first unread message

Ben Mabey

unread,
Aug 19, 2015, 6:49:14 PM8/19/15
to conda - Public
Hi,
I'm trying to create an environment file and I an running into package specs conflicting with each other. Package A depends on an older version of numpy but I have verified that it does work fine with newer versions. Anyways, to workaround the issue I'd like conda to ignore this conflict. In the Java/Maven world they address this problem by allowing users to specify dependencies that will be excluded. Does conda's environment yaml API allow something similar? If not, what other local workarounds can I try that don't involve me updating Project A (that I don't own)?

Thanks,
Ben

Phil Elson

unread,
Aug 24, 2015, 3:29:47 PM8/24/15
to Ben Mabey, conda

To my knowledge no. Though you can "conda install --force" a package and it's dependencies will be ignored.

HTH

jmor...@continuum.io

unread,
Aug 25, 2015, 6:07:29 PM8/25/15
to conda - Public
There is a way to install a package without dependencies using --no-deps. As if installing a single package you could run this "conda install numba --no-deps". Hopefully this can help as you can then just specify the package and version you want for the ignored dependency on your own terms.
Reply all
Reply to author
Forward
0 new messages