Pip download `Cannot Install` Due To Conflict While Showing Exact Version Match?

Description

I’m attempting to run pip download in order to bundle wheels into a zip file to upload to a service without internet access. I need to download all of my dependencies from PyPI and then upload them to the service for the service to run.

While running pip download I hit this error which makes very little sense to me due to the constraint message exactly matching on the version. Particularly since the constraint uses ==.

Here’s the constraint file used

Error

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code> python -m pip download -r requirements/requirements.txt -d plugins
Looking in links: /usr/local/airflow/plugins
WARNING: Location '/usr/local/airflow/plugins' is ignored: it is either a non-existing path or lacks a specific scheme.
ERROR: Cannot install apache-airflow-providers-amazon==8.16.0 because these package versions have conflicting dependencies.
The conflict is caused by:
The user requested apache-airflow-providers-amazon==8.16.0
The user requested (constraint) apache-airflow-providers-amazon==8.16.0
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
</code>
<code> python -m pip download -r requirements/requirements.txt -d plugins Looking in links: /usr/local/airflow/plugins WARNING: Location '/usr/local/airflow/plugins' is ignored: it is either a non-existing path or lacks a specific scheme. ERROR: Cannot install apache-airflow-providers-amazon==8.16.0 because these package versions have conflicting dependencies. The conflict is caused by: The user requested apache-airflow-providers-amazon==8.16.0 The user requested (constraint) apache-airflow-providers-amazon==8.16.0 To fix this you could try to: 1. loosen the range of package versions you've specified 2. remove package versions to allow pip attempt to solve the dependency conflict </code>
 python -m pip download -r requirements/requirements.txt -d plugins
Looking in links: /usr/local/airflow/plugins
WARNING: Location '/usr/local/airflow/plugins' is ignored: it is either a non-existing path or lacks a specific scheme.
ERROR: Cannot install apache-airflow-providers-amazon==8.16.0 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested apache-airflow-providers-amazon==8.16.0
    The user requested (constraint) apache-airflow-providers-amazon==8.16.0

To fix this you could try to:
 1. loosen the range of package versions you've specified
 2. remove package versions to allow pip attempt to solve the dependency conflict

requirements.txt

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>--constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.8.1/constraints-3.11.txt"
apache-airflow-providers-amazon==8.16.0
apache-airflow-providers-postgres==5.10.0
# https://seasensor.atlassian.net/browse/SP-4980
--find-links /usr/local/airflow/plugins --no-index
# TODO: Remove these dependencies when we've moved to remote operators. These
# are all Task Code Requirements and not Airflow Requirements
# NOTE: Any requirement found both in https://github.com/iocurrents/data-pipeline/blob/main/scripts/requirements.txt
# and in the constraints file automatically default to the constrains file
# version.
botocore==1.34.67
iniconfig==2.0.0
jmespath==1.0.1
jsonschema==4.21.1
jsonschema-specifications==2023.12.1
markdown-it-py==3.0.0
mdurl==0.1.2
numpy==1.24.4 # Downgraded from 1.24.4
packaging==24.0
pandas==2.1.4 # Downgraded from 2.2.1
pluggy==1.3.0 # Downgrade from 1.4.0
psycopg2==2.9.9
pygments==2.17.2
pytest==7.4.4 # Downgraded from 8.1.1
python-dateutil==2.8.2 # Downgraded from 2.9.0.post0
pytz==2023.3.1.1 # Downgraded from 2024.1
referencing==0.32.1 # Downgraded from 0.34.0
rich==13.7.0 # Downgraded from 13.7.1
rpds-py==0.17.1 # Downgraded from 0.18.0
s3transfer==0.8.2 # Downgraded from 0.10.1
six==1.16.0
tzdata==2023.4 # Downgraded from 2024.1
urllib3==2.0.7 # Upgraded from 1.25.4
</code>
<code>--constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.8.1/constraints-3.11.txt" apache-airflow-providers-amazon==8.16.0 apache-airflow-providers-postgres==5.10.0 # https://seasensor.atlassian.net/browse/SP-4980 --find-links /usr/local/airflow/plugins --no-index # TODO: Remove these dependencies when we've moved to remote operators. These # are all Task Code Requirements and not Airflow Requirements # NOTE: Any requirement found both in https://github.com/iocurrents/data-pipeline/blob/main/scripts/requirements.txt # and in the constraints file automatically default to the constrains file # version. botocore==1.34.67 iniconfig==2.0.0 jmespath==1.0.1 jsonschema==4.21.1 jsonschema-specifications==2023.12.1 markdown-it-py==3.0.0 mdurl==0.1.2 numpy==1.24.4 # Downgraded from 1.24.4 packaging==24.0 pandas==2.1.4 # Downgraded from 2.2.1 pluggy==1.3.0 # Downgrade from 1.4.0 psycopg2==2.9.9 pygments==2.17.2 pytest==7.4.4 # Downgraded from 8.1.1 python-dateutil==2.8.2 # Downgraded from 2.9.0.post0 pytz==2023.3.1.1 # Downgraded from 2024.1 referencing==0.32.1 # Downgraded from 0.34.0 rich==13.7.0 # Downgraded from 13.7.1 rpds-py==0.17.1 # Downgraded from 0.18.0 s3transfer==0.8.2 # Downgraded from 0.10.1 six==1.16.0 tzdata==2023.4 # Downgraded from 2024.1 urllib3==2.0.7 # Upgraded from 1.25.4 </code>
--constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.8.1/constraints-3.11.txt"

apache-airflow-providers-amazon==8.16.0
apache-airflow-providers-postgres==5.10.0

#       https://seasensor.atlassian.net/browse/SP-4980
--find-links /usr/local/airflow/plugins --no-index

# TODO: Remove these dependencies when we've moved to remote operators. These
#       are all Task Code Requirements and not Airflow Requirements
# NOTE: Any requirement found both in https://github.com/iocurrents/data-pipeline/blob/main/scripts/requirements.txt
#       and in the constraints file automatically default to the constrains file
#       version.
botocore==1.34.67
iniconfig==2.0.0
jmespath==1.0.1
jsonschema==4.21.1
jsonschema-specifications==2023.12.1
markdown-it-py==3.0.0
mdurl==0.1.2
numpy==1.24.4  # Downgraded from 1.24.4
packaging==24.0
pandas==2.1.4 # Downgraded from 2.2.1
pluggy==1.3.0  # Downgrade from 1.4.0
psycopg2==2.9.9
pygments==2.17.2
pytest==7.4.4  # Downgraded from 8.1.1
python-dateutil==2.8.2  # Downgraded from 2.9.0.post0
pytz==2023.3.1.1  # Downgraded from 2024.1
referencing==0.32.1  # Downgraded from 0.34.0
rich==13.7.0  # Downgraded from 13.7.1
rpds-py==0.17.1 # Downgraded from 0.18.0
s3transfer==0.8.2 # Downgraded from 0.10.1
six==1.16.0
tzdata==2023.4 # Downgraded from 2024.1
urllib3==2.0.7 # Upgraded from 1.25.4

Environment Information

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>python --version
Python 3.11.9
</code>
<code>python --version Python 3.11.9 </code>
python --version
Python 3.11.9

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật