Conda: Installing / upgrading directly from github

conda install package from github repository
conda install -c anaconda git
pip install from github
conda install git repo
conda upgrade git
install git in anaconda prompt
git install windows conda
conda install pip git

Can I install/upgrade packages from GitHub using conda?

For example, with pip I can do:

pip install git+git://

to install scrappy directly from the master branch in GitHub. Can I do something equivalent with conda?

If this is not possible, would it make any sense to install pip with conda and manage such local installations with pip?

There's better support for this now through conda-env. You can, for example, now do:

name: sample_env
   - requests
   - bokeh>=0.10.0
   - pip:
     - "--editable=git+"

It's still calling pip under the covers, but you can now unify your conda and pip package specifications in a single environment.yml file.

If you wanted to update your root environment with this file, you would need to save this to a file (for example, environment.yml), then run the command: conda env update -f environment.yml.

It's more likely that you would want to create a new environment:

conda env create -f environment.yml (changed as supposed in the comments)

Installing Packages from GitHub with Conda Commands, This is quick note to myself that describes how to install packages directly from GitHub using the command line. Usually, I find myself doing this when I cannot  In order to install packages directly from GitHub, we need to first install the git and pip packages in you desired environment. Install git with: conda install git

The answers are outdated. You simply have to conda install pip and git. Then you can use pip normally:

  1. Activate your conda environment source activate myenv

  2. conda install git pip

  3. pip install git+git://

Installation via Anaconda · obspy/obspy Wiki · GitHub, Updating. (obspy) $ conda update obspy. or (if you did not add the conda-forge channel to your default  Note that I didn't find mamba useful in solving the environment faster, and don't think it's possible/advisable to install into your main environment at this time (instead put it in its own environment) Install as follows: Check that conda-forge is in your conda env channels with `conda Either view ~/.condarc or conda config --show-sources

conda doesn't support this directly because it installs from binaries, whereas git install would be from source. conda build does support recipes that are built from git. On the other hand, if all you want to do is keep up-to-date with the latest and greatest of a package, using pip inside of Anaconda is just fine, or alternately, use develop against a git clone.

Conda Installation · CellProfiler/CellProfiler Wiki · GitHub, We advise Conda installation for Windows environments. run: conda env create -f environment.yml # run: conda env update -f If wxpython is causing trouble in Windows, wxpython can be installed directly into the conda  Now you can install ImageAI directly from PIP by running the command below. pip3 install imageai 👍

I found a reference to this in condas issues. The following should now work.

name: sample_env
   - requests
   - bokeh>=0.10.0
   - pip:
     - git+

Conda: Installing / upgrading directly from github, Can I install/upgrade packages from GitHub using conda? For example, with pip I can do: pip install git+git://  And even when needing to install a package from source using pip it is a good idea to at least install the package's dependencies via conda beforehand. Troubleshooting: If you have problems, be sure to check out the Troubleshooting page of Anaconda

Conda: Installing / upgrading directly from github, Can I install/upgrade packages from GitHub using conda? For example, with pip I can do: pip install git git:// to install  conda install -c anaconda git Description Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Git :: Anaconda Cloud, To install this package with conda run: conda install -c anaconda git. Description. Git is a free and open source distributed version control system designed to  Only ever use your system package manager to upgrade the system pip. The system installed pip is owned by the distribution, and if you don't use distribution-supplied tools to manage it, you will hit problems.

Working with packages, To install conda packages from the user travis , use the repository URL git clone cd All packages built in this way are placed in a subdirectory of the Anaconda conda-bld directory. It is also possible to install directly from Github, which is the best way to utilize the utils_nlp package in external projects (while still reflecting updates to the source as it's installed as an editable '-e' package).

  • How do you install the requirements from that environment in your root environment?
  • @hobs - I've edited the answer to answer your question.
  • It's actually conda env create -f environment.yml, with conda create the -f flag stands for --force.
  • Is it documented somewhere?
  • @Perfi, my mistake I thought you were suggesting that the -f in conda env create referred to force, and not for conda create, my mistake for not reading carefully.
  • In addition to this you have to use the pip which is within your envs like in my case the pip I used was "/home/ubuntu/anaconda3/envs/tensorflow_p36/bin/pip". This pip comes after you do the conda install. You can prepend this bin dir to your $PATH.
  • is the installed package only on the master branch after that? What if I'd like to test my PR from a branch before merging to master?
  • @AntonAndreev the spec supports both git+git and git+https, plus others. However, all the spec examples do show a .git whenever specifying the branch.
  • This adds nothing that isn't already in @AronAhmadia's answer, which illustrates more generally that many of the options in a normal requirements.txt are available.