Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I add a repository to conda

I am trying to install python-qutip to run on IPython notebook, which I have configured to run using the conda path variables . Qutip is an extremely popular (and useful) open-source package to simulate open quantum suystems.

With

    conda install python-qutip 

or

    pip-install python-qutip

I get Error: No packages found matching: python-qutip (as expected). Same thing with

    pip install python-qutip 

As a quick 'n dirty solution, Is there some way to add the jrjohansson/qutip-releases repository to my conda library?

Alternatively, is it possible to install manually as in: sudo python setup.py install and add the installation directory to the conda path?

like image 370
nikosd Avatar asked Oct 14 '25 08:10

nikosd


2 Answers

I figure you've probably solved this at this point but for any wandering search-engine travelers:

In addition to specifying a channel for a singular install, anaconda's docs give this method for adding a channel to your user's conda config(with conda>=4.1):

conda config --add channels new_channel

You can also see the channels you currently have added in ~/.condarc or by running conda config --show

For this particular case, you might do something like:

conda config --add channels jrjohansson
conda install python-qutip

If you're installing packages from a particular channel frequently(e.g. from conda-forge), this can be pretty useful.

Hope it helps :)

like image 109
Patrick Avatar answered Oct 16 '25 22:10

Patrick


If you search anaconda.com you find the following:

Using binstar api site https://api.anaconda.org
Name:    qutip
Summary: QuTiP: The Quantum Toolbox in Python
Access:  public
Package Types:  conda
Versions:
   + 3.0.1
   + 3.0.0
   + 3.1.0

To install this package with conda run:
     conda install --channel https://conda.anaconda.org/jrjohansson qutip

The last line works for me (OpenSuse 13.1, miniconda).

like image 34
BlueLemon Avatar answered Oct 16 '25 23:10

BlueLemon



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!