Conda: Installing / upgrading directly from github
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------
Take control of your privacy with Proton's trusted, Swiss-based, secure services.
Choose what you need and safeguard your digital life:
Mail: https://go.getproton.me/SH1CU
VPN: https://go.getproton.me/SH1DI
Password Manager: https://go.getproton.me/SH1DJ
Drive: https://go.getproton.me/SH1CT
Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game Looping
--
Chapters
00:00 Conda: Installing / Upgrading Directly From Github
00:28 Answer 1 Score 31
00:51 Accepted Answer Score 138
01:33 Answer 3 Score 167
01:59 Answer 4 Score 30
02:13 Thank you
--
Full question
https://stackoverflow.com/questions/1904...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #github #pip #packagemanagers #conda
#avk47
ANSWER 1
Score 167
The answers are outdated. You simply have to conda install pip and git. Then you can use pip normally:
Activate your conda environment
source activate myenvconda install git pippip install git+git://github.com/scrappy/scrappy@master
ACCEPTED ANSWER
Score 138
There's better support for this now through conda-env. You can, for example, now do:
name: sample_env
channels:
dependencies:
- requests
- bokeh>=0.10.0
- pip:
- "--editable=git+https://github.com/pythonforfacebook/facebook-sdk.git@8c0d34291aaafec00e02eaa71cc2a242790a0fcc#egg=facebook_sdk-master"
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)
ANSWER 3
Score 31
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 setup.py develop against a git clone.
ANSWER 4
Score 30
I found a reference to this in condas issues. The following should now work.
name: sample_env
channels:
dependencies:
- requests
- bokeh>=0.10.0
- pip
- pip:
- git+https://github.com/pythonforfacebook/facebook-sdk.git