Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install package with pip from specific branch of github

Tags:

I have across a very weird issue. I try to pip install a package from my github fork. I have done this multiple times in the past and it works always.

This is what I do:

pip install git+https...@my_branch 

While this works perfectly in my local machine, when I try to w Windows Remote machine and to my Ubuntu Vagrant box it doesnt work.

Instead of installing the package with my_branch, it installs the master branch. Initially I thought it was related with an outdated version of pip but after upgrading to the latest version, I keep facing the same issue.

Any ideas whats the problem?

like image 707
user1919 Avatar asked Jan 05 '17 18:01

user1919


People also ask

Can you pip install from a github repo?

Pip is a package manager of python. You can download Python libraries from some Python repositories like PyPI . You can also download libraries from a git repository.


1 Answers

Maybe some characters like the @ character are not recognized properly in your command in other environments? Try putting quotes, like this: pip install "git+https...@my_branch"

like image 104
Swergas Avatar answered Nov 07 '22 07:11

Swergas