[Python] Is there a way to exclude a specific version when installing a package from pypi...

Discussão em 'Python' iniciado por Stack, Julho 23, 2025.

  1. Stack

    Stack Membro Participativo

    In my local pypi server let's say I have 3 versions of the package example like below:

    example==20200903
    example==20200904
    example==202009089 # I need to exclude this
    example==20200909


    As you can see I have used date to manage our versioning, but in the middle of the versioning we have a package that has a version like 202009089 so it always match as it has a bigger number and the versioning gets broken. Is there a way to exclude that specific version when installing via pip install and install the latest version except 202009089?

    Continue reading...

Compartilhe esta Página