The Quantum Physicist
The Quantum Physicist

Reputation: 26286

Anaconda: Upload to the global channel

I use pip since a while, but I need now to use Anaconda because it supports h5py on Windows without having to compile it.

I uploaded my first package to Anaconda.org (using this tutorial), and everything went smoothly. But... I noticed that i have to run this command to install:

conda install mypackage -c myusername

While I notice that other packages (like PyQt and h5py) can be installed with:

conda install h5py

So apparently there's something special to be done to gain access to the "global channel". I couldn't find any information about that whatsoever. How can I upload my package to the global channel?

Upvotes: 3

Views: 553

Answers (1)

darthbith
darthbith

Reputation: 19617

All packages in conda are installed from channels. By default, the defaults channel is added to the configuration file. So, you just need to add your channel to be automatically searched in the configuration file.

conda config --add channels myusername

will ensure that your channel is searched before the existing channels, while

conda config --append channels myusername

will ensure that your channel is searched after any existing channels.

Upvotes: 1

Related Questions