Install package with pip from specific branch of github

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:

  • How to close a branch WITHOUT removing it from history in git?
  • How to git clone an SVN repository where all branches are located in root?
  • How to fix TFS incorrect branching
  • How can I check that a branch doesn't have any merges?
  • Git Workflow leads to Unsyncronized Branches on Bitbucket
  • Perforce equivalent of git local commit
  • 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?

  • Composer: Multiple Packages in one Repo
  • Git thinks a commit message is a command not found
  • How to find the CRLF line separator in the code
  • Remove commits from a single branch in Git
  • Find a file history
  • File name is too long: how to remove?
  • 2 Solutions collect form web for “Install package with pip from specific branch of github”

    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”

    Suppose you have forked some git repo and made some changes.
    To install this specific branch:

    1. Release a new version from your branch and add a version tag, like
      v1.0
    2. Use
      pip install -e git+https://github.com/your_user_name/repo_name@v1.0#egg=repo_name
      in the terminal
    Git Baby is a git and github fan, let's start git clone.