how can i add a repository to conda

  • Last Update :
  • Techknowledgy :

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

For this particular case, you might do something like:

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

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

I think the easiest way to install qutip is the following

pip install qutip

Assuming you have conda-build installed, you can try building the conda recipe (currently on a fork):

git clone https: //github.com/jrjohansson/conda-recipes.git
   cd conda - recipes
conda build qutip
conda install--use - local qutip

Suggestion : 2

Use the anaconda-client command line interface to create a new package and namespace for your file on Anaconda Repository:,Use the anaconda-client command line interface to create a new package and namespace for your file on Anaconda Repository: anaconda login anaconda package --create USERNAME/baby-names ,Anaconda Repository supports two package managers, conda and PyPI. To work with conda or PyPI packages, you must use their corresponding subdomains:,To upload package files to Anaconda Repository use the anaconda-client command line interface and the upload command:

conda install anaconda - client
pip install anaconda - client
pip install git + https: //github.com/Anaconda-Server/anaconda-client
anaconda - h
conda install— - channel sean selenium
conda install— - channel sean / label / dev selenium
conda install— - channel sean / label / stable selenium
conda install anaconda - client conda - build

Suggestion : 3

To proxy a Conda repository, you simply create a new conda (proxy) as documented in Repository Management in detail.,You can create a proxy repository in Nexus Repository Manager that will cache packages from a remote anaconda repository, like  Continuum, Conda-Forge and Anaconda. Then, you can make the Conda client use your Nexus Repository proxy instead of the remote repository.,If you are connecting repository manager to Conda Cloud using a token, you will need to add the token value to the Conda proxy repository Remote URL value.,If you are using the Conda client only with Nexus Repository, you can add channels to the Conda repositories in the .condarc file and remove the default channels:

Using the Conda client, you can now download packages from your Nexus Repository Conda proxy like so:

$ conda install -c <protocol>://<user>:<password>@<hostname>:<port>/repository/<repository_name>/main numpy

After these changes, you can install packages without directly specifying a channel as follows:

$ conda install numpy

If you are using the Conda client only with Nexus Repository, you can add channels to the Conda repositories in the .condarc file and remove the default channels:

$ conda config --add channels <protocol>://<user>:<password>@<hostname>:<port>/repository/<repository_name>/main
                  $ conda config --remove channels defaults

Suggestion : 4

Channels are the path that conda takes to look for packages. The easiest way to use and manage custom channels is to use a private or public repository on Anaconda.org. If you designate your Anaconda.org repository as private, then only you and those you grant access to can access your private repository.,The conda index command generates a file repodata.json, saved to each repository directory, which conda uses to get the metadata for the packages in the channel.,This is followed by a list of the conda packages found. This verifies that you have set up and indexed your private repository successfully.,To test custom channels, serve the custom channel using a web server or using a file:// URL to the channel directory. Test by sending a search command to the custom channel.

conda install conda - build
 channel /
    linux - 64 /
    package - 1.0 - 0. tar.bz2
 linux - 32 /
    package - 1.0 - 0. tar.bz2
 osx - 64 /
    package - 1.0 - 0. tar.bz2
 win - 64 /
    package - 1.0 - 0. tar.bz2
 win - 32 /
    package - 1.0 - 0. tar.bz2
conda index channel /
conda search - c file: ///opt/channel/ --override-channels
Fetching package metadata: ....

Suggestion : 5

Fork conda-forge/staged-recipes , For a package on conda-forge, I want to ... , Home | About | conda-forge on GitHub , Create a new branch from the staged-recipes master branch.

or use this bibtex entry

@misc {
   conda_forge_community_2015_4774216,
   author = {
      conda - forge community
   },
   title = {
      {
         The conda - forge Project: Community - based Software
         Distribution Built on the conda Package Format and
         Ecosystem
      }
   },
   month = jul,
   year = 2015,
   publisher = {
      Zenodo
   },
   doi = {
      10.5281 / zenodo .4774216
   },
   url = {
      https: //doi.org/10.5281/zenodo.4774216}
   }

Suggestion : 6

To add packages to an existing environment, select the environment and click Add. In the Conda Channels dialog box, specify the path to your local conda repository where you extracted the local-conda-repository.tgz file in the previous step.,Optional. Specify the conda environment YAML file containing additional packages to be included in the repository. If multiple environments, specify this parameter multiple times.,To create an environment from a YAML file, click Add and select the file that you want to use. The channels section inside the environment file specifies the path to your local repository where you extracted the local-conda-repository.tgz file in the previous step. An example channel:- file://path_to_local_repository ,You can create a conda environment from a local file repository for clusters where all hosts do not have internet access. Or administrators want to control the packages available to users rather than allowing them to download packages from various conda channels.

$EGO_TOP / conductorspark / 2.5 .0 / etc / createcondarepo.sh
. / createcondarepo.sh - s anaconda_script - d installation_directory[options]
local-conda-repository.tgz
. / createcondarepo.sh - s Miniconda3 - py37_4 .8 .2 - Linux - x86_64.sh - d miniconda - y miniconda482 - python3 - linux - x86_64 - dask - cpu - base.yml - y miniconda482 - python3 - linux - x86_64 - jupyter - lab.yml
-file: //path_to_local_repository