Search code examples
pythonpip

How to install a .zip package via requirements.txt?


I've got URL similar tohttps://github.com/me/my-project/archive/master.zip

During development, I was able to install it with:

pip install https://github.com/me/my-project/archive/master.zip

How would I go about adding that to requirements.txt? I can only see options for repositories.

Thanks.


Solution

  • It seems that in the current version you just need to bring in the path to the zip package directly:

    # requirements.txt
    https://github.com/me/my-project/archive/master.zip
    

    Then... it's done. No need to specify any additional information.