Closed ranjitiyer closed 2 years ago
Ah. The --use-local
flag is equivalent to -c local
. There is literally a special channel named local
, which is actually the conda-build channel, and therefore sort of a confusing name. Unfortunately, it's historic and difficult to change, so we're stuck with it.
For what you're trying to do, --channel-priority --show-channel-urls --force
are all overkill. Channel priority is enabled by default. I didn't even know --show-channel-urls
was a valid flag for the install
command. The --force
we're trying to get away from; it means too many different things in too many different contexts.
For what you're trying to do, I'd recommend just
conda install --dry-run -c file:///tmp sparkmagic
or
conda install --dry-run file:///tmp::sparkmagic
Hi there, thank you for your contribution to Conda!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further activity occurs.
If you would like this issue to remain open please:
Verify that you can still reproduce the issue in the latest version of Conda
Comment that the issue is still reproducible and include:
It would also be helpful to have the output of the following commands available:
conda info
conda config --show-sources
conda list --show-channel-urls
NOTE: If this issue was closed prematurely, please leave a comment and we will gladly reopen the issue.
In case this issue was originally about a project that is covered by the Anaconda issue tracker (e.g. Anaconda, Miniconda, packages built by Anaconda, Inc. like Anaconda Navigator etc), please reopen the issue there again.
Thanks!
Hi again!
This issue has been closed since it has not had recent activity. Please don't hesitate to leave a comment if that was done prematurely.
Thank you for your contribution.
I'm submitting a...
Current Behavior
I'm wanting some guidance on the correct syntax to install a package from a local channel but allow dependencies to be obtained from the 'default' channel.
I have a locally built sparkmagic package (built with conda build)
Index it
Add local channel
List channels and find 'tmp' has precedence
Enforce channel priority
Install sparkmagic. I notice that it won't find sparkmagic in the local channel but tries to install it from 'default'
I'm new to this, so guessing there's a missing flag or step.
My objective is to install sparkmagic alone from
tmp
but have its dependencies obtained fromdefault
Thanks :)