Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

12
  • 45
    Note: from Django 1.9 on, Django ships with a file that has a unicode filename. The zip extractor used by pip chokes on that. An easy workaround is to replace .zip with .tar.gz, as the tar extractor works. Commented Jul 3, 2016 at 11:56
  • 9
    I wonder if pip could pass --depth 0 when cloning to make it more efficient (the entire git history is not needed to install a snapshot for pip). git-scm.com/docs/git-clone Commented Mar 31, 2017 at 18:15
  • 12
    This also works for commit hashes! pip install https://github.com/django/django/archive/ebaa08b.zip Commented Apr 12, 2017 at 3:31
  • 7
    Thanks for pointing out the speed difference. I did not test and compare them, but I believe the speed difference does exist, because installing from a branch would still result in downloading the entire repo history, while installing from a .zip (or .tar.gz) would result in downloading just a snapshot of the repo. Commented Jun 2, 2017 at 20:52
  • 4
    Okay, so it seems to be possible when running pip install directly and just requires setting the egg name explicitly - pip install https://github.com/apache/incubator-airflow/archive/master.zip#egg=airflow[crypto,slack]. Also the spaces between extras in my previous comment are a mistake. Note that however this syntax with extras does not seem to work in a requirements.txt file. Commented Aug 8, 2017 at 1:46