In GCP Airflow - tensorflow 2.12.0 requires numpy<1.24,>=1.22, but you'll have numpy 1.24.4 which is incompatible
Hi @**Aravinviju** ,
Could you try to downgrade NumPy to a version that is compatible with TensorFlow 2.12.0 by running the following command:
```
pip install numpy==1.23.4  
```
This will install NumPy version 1.23.4, which is compatible with TensorFlow 2.12.0.

Thank you! This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you. This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further. Are you satisfied with the resolution of your issue?
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62296">Yes</a>
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62296">No</a>

### Issue type

Bug

### Have you reproduced the bug with TensorFlow Nightly?

No

### Source

source

### TensorFlow version

2.12.0

### Custom code

Yes

### OS platform and distribution

GCP - Airflow Environment - Ubuntu 16.04

### Mobile device

Ubuntu 16.04

### Python version

3.8

### Bazel version

_No response_

### GCC/compiler version

GCP airflow composer-2.3.1

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

I'm trying to install python packages in the airflow pypi console in GCP. While installing a package that requires numpy>=1.24, this gives a conflict with the tensorflow as it requires <1.24 for tensorflow. If I reduce the tf version then that becomes incompatible with my required package (reliability). I don't understand how to resolve this.

**ERROR**

> ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts.



### Standalone code to reproduce the issue

```shell
All I tried to do was to, install the required package (reliability - https://pypi.org/project/reliability/#:~:text=reliability%20is%20a%20Python%20library,only%20available%20in%20proprietary%20software.) in the GCP airflow environment(GCP airflow composer-2.3.1) through the PYPI packages GCP airflow environment console. The python version used in this build is Python 3.8.
Everytime I try to install the package, the environment build fails with this conflict with TF and numpy.
```


### Relevant log output

```shell
tensorflow 2.12.0 requires numpy<1.24,>=1.22, but you'll have numpy 1.24.4 which is incompatible.
Successfully installed autograd-1.6.2 autograd-gamma-0.5.0 contourpy-1.1.1 cycler-0.12.1 fonttools-4.43.1 kiwisolver-1.4.5 matplotlib-3.7.3 mplcursors-0.5.2 numpy-1.24.4 pandas-2.0.3 pillow-10.1.0 reliability-0.8.14 tzdata-2023.3
+ python3 -m pipdeptree --warn
Warning!!! Possibly conflicting dependencies found:
* tensorflow==2.12.0
 - numpy [required: >=1.22,<1.24, installed: 1.24.4]
------------------------------------------------------------------------
Warning!! Cyclic dependencies found:
* apache-airflow => apache-airflow => apache-airflow
* apache-airflow-providers-ssh => apache-airflow => apache-airflow-providers-ssh
* apache-airflow-providers-sqlite => apache-airflow => apache-airflow-providers-sqlite
* apache-airflow-providers-sendgrid => apache-airflow => apache-airflow-providers-sendgrid
* apache-airflow-providers-postgres => apache-airflow => apache-airflow-providers-postgres
* apache-airflow-providers-mysql => apache-airflow => apache-airflow-providers-mysql
* apache-airflow-providers-imap => apache-airflow => apache-airflow-providers-imap
* apache-airflow-providers-http => apache-airflow => apache-airflow-providers-http
* apache-airflow-providers-hashicorp => apache-airflow => apache-airflow-providers-hashicorp
* apache-airflow-providers-google => apache-airflow => apache-airflow-providers-google
* apache-airflow-providers-ftp => apache-airflow => apache-airflow-providers-ftp
* apache-airflow-providers-dbt-cloud => apache-airflow => apache-airflow-providers-dbt-cloud
* apache-airflow-providers-common-sql => apache-airflow => apache-airflow-providers-common-sql
* apache-airflow-providers-cncf-kubernetes => apache-airflow => apache-airflow-providers-cncf-kubernetes
* apache-airflow-providers-apache-beam => apache-airflow => apache-airflow-providers-apache-beam
* apache-airflow => apache-airflow-providers-apache-beam => apache-airflow
* apache-airflow => apache-airflow-providers-cncf-kubernetes => apache-airflow
* apache-airflow => apache-airflow-providers-common-sql => apache-airflow
* apache-airflow => apache-airflow-providers-common-sql => apache-airflow
* apache-airflow => apache-airflow-providers-dbt-cloud => apache-airflow
* apache-airflow => apache-airflow-providers-ftp => apache-airflow
* apache-airflow => apache-airflow-providers-google => apache-airflow
* apache-airflow => apache-airflow-providers-hashicorp => apache-airflow
* apache-airflow => apache-airflow-providers-http => apache-airflow
* apache-airflow => apache-airflow-providers-imap => apache-airflow
* apache-airflow => apache-airflow-providers-mysql => apache-airflow
* apache-airflow => apache-airflow-providers-postgres => apache-airflow
* apache-airflow => apache-airflow-providers-sendgrid => apache-airflow
* apache-airflow => apache-airflow-providers-sqlite => apache-airflow
* apache-airflow => apache-airflow-providers-ssh => apache-airflow
------------------------------------------------------------------------
appdirs==1.4.4
google-cloud-datacatalog-lineage-producer-client==0.0.9
├── cachetools [required: >=5.0.0, installed: 5.2.1]
└── google-cloud-datacatalog-lineage [required: ==0.1.6, installed: 0.1.6]
    ├── google-api-core [required: >=1.28.0,<3.0.0dev, installed: 2.11.0]
    │   ├── google-auth [required: >=2.14.1,<3.0dev, installed: 2.16.0]
    │   │   ├── cachetools [required: >=2.0.0,<6.0, installed: 5.2.1]
    │   │   ├── pyasn1-modules [required: >=0.2.1, installed: 0.2.8]
    │   │   │   └── pyasn1 [required: >=0.4.6,<0.5.0, installed: 0.4.8]
    │   │   ├── rsa [required: >=3.1.4,<5, installed: 4.9]
    │   │   │   └── pyasn1 [required: >=0.1.3, installed: 0.4.8]
    │   │   └── six [required: >=1.9.0, installed: 1.16.0]
    │   ├── googleapis-common-protos [required: >=1.56.2,<2.0dev, installed: 1.59.0]
    │   │   └── protobuf [required: >=3.19.5,<5.0.0dev,!=4.21.5,!=4.21.4,!=4.21.3,!=4.21.2,!=4.21.1,!=3.20.1,!=3.20.0, installed: 4.22.5]
    │   ├── protobuf [required: >=3.19.5,<5.0.0dev,!=4.21.5,!=4.21.4,!=4.21.3,!=4.21.2,!=4.21.1,!=4.21.0,!=3.20.1,!=3.20.0, installed: 4.22.5]
    │   └── requests [required: >=2.18.0,<3.0.0dev, installed: 2.28.2]
    │       ├── certifi [required: >=2017.4.17, installed: 2022.12.7]
    │       ├── charset-normalizer [required: >=2,<4, installed: 2.1.1]
    │       ├── idna [required: >=2.5,<4, installed: 3.4]
    │       └── urllib3 [required: >=1.21.1,<1.27, installed: 1.26.14]
    ├── googleapis-common-protos [required: >=1.55.0,<2.0.0dev, installed: 1.59.0]
    │   └── protobuf [required: >=3.19.5,<5.0.0dev,!=4.21.5,!=4.21.4,!=4.21.3,!=4.21.2,!=4.21.1,!=3.20.1,!=3.20.0, installed: 4.22.5]
    ├── libcst [required: >=0.2.5, installed: 1.0.0]
    │   ├── pyyaml [required: >=5.2, installed: 6.0]
    │   ├── typing-extensions [required: >=3.7.4.2, installed: 4.4.0]
    │   └── typing-inspect [required: >=0.4.0, installed: 0.9.0]
    │       ├── mypy-extensions [required: >=0.3.0, installed: 1.0.0]
    │       └── typing-extensions [required: >=3.7.4, installed: 4.4.0]
    └── proto-plus [required: >=1.19.6, installed: 1.22.2]
        └── protobuf [required: >=3.19.0,<5.0.0dev, installed: 4.22.5]
reliability==0.8.14
├── autograd [required: >=1.5, installed: 1.6.2]
│   ├── future [required: >=0.15.2, installed: 0.18.3]
│   └── numpy [required: >=1.12, installed: 1.24.4]
├── autograd-gamma [required: >=0.5.0, installed: 0.5.0]
│   ├── autograd [required: >=1.2.0, installed: 1.6.2]
│   │   ├── future [required: >=0.15.2, installed: 0.18.3]
│   │   └── numpy [required: >=1.12, installed: 1.24.4]
│   └── scipy [required: >=1.2.0, installed: 1.10.1]
│       └── numpy [required: >=1.19.5,<1.27.0, installed: 1.24.4]
├── matplotlib [required: >=3.7.1, installed: 3.7.3]
│   ├── contourpy [required: >=1.0.1, installed: 1.1.1]
│   │   └── numpy [required: >=1.16,<2.0, installed: 1.24.4]
│   ├── cycler [required: >=0.10, installed: 0.12.1]
│   ├── fonttools [required: >=4.22.0, installed: 4.43.1]
│   ├── importlib-resources [required: >=3.2.0, installed: 5.10.2]
│   │   └── zipp [required: >=3.1.0, installed: 3.11.0]
│   ├── kiwisolver [required: >=1.0.1, installed: 1.4.5]
│   ├── numpy [required: >=1.20,<2, installed: 1.24.4]
│   ├── packaging [required: >=20.0, installed: 23.0]
│   ├── pillow [required: >=6.2.0, installed: 10.1.0]
│   ├── pyparsing [required: >=2.3.1, installed: 3.0.9]
│   └── python-dateutil [required: >=2.7, installed: 2.8.2]
│       └── six [required: >=1.5, installed: 1.16.0]
├── mplcursors [required: >=0.5.2, installed: 0.5.2]
│   └── matplotlib [required: >=3.1, installed: 3.7.3]
│       ├── contourpy [required: >=1.0.1, installed: 1.1.1]
│       │   └── numpy [required: >=1.16,<2.0, installed: 1.24.4]
│       ├── cycler [required: >=0.10, installed: 0.12.1]
│       ├── fonttools [required: >=4.22.0, installed: 4.43.1]
│       ├── importlib-resources [required: >=3.2.0, installed: 5.10.2]
│       │   └── zipp [required: >=3.1.0, installed: 3.11.0]
│       ├── kiwisolver [required: >=1.0.1, installed: 1.4.5]
│       ├── numpy [required: >=1.20,<2, installed: 1.24.4]
│       ├── packaging [required: >=20.0, installed: 23.0]
│       ├── pillow [required: >=6.2.0, installed: 10.1.0]
│       ├── pyparsing [required: >=2.3.1, installed: 3.0.9]
│       └── python-dateutil [required: >=2.7, installed: 2.8.2]
│           └── six [required: >=1.5, installed: 1.16.0]
├── numpy [required: >=1.24.2, installed: 1.24.4]
├── pandas [required: >=2.0.1, installed: 2.0.3]
│   ├── numpy [required: >=1.20.3, installed: 1.24.4]
│   ├── python-dateutil [required: >=2.8.2, installed: 2.8.2]
│   │   └── six [required: >=1.5, installed: 1.16.0]
│   ├── pytz [required: >=2020.1, installed: 2022.7.1]
│   └── tzdata [required: >=2022.1, installed: 2023.3]
└── scipy [required: >=1.10.1, installed: 1.10.1]
    └── numpy [required: >=1.19.5,<1.27.0, installed: 1.24.4]
+ [[ -z fail ]]
+ python3 -m pip check
tensorflow 2.12.0 has requirement numpy<1.24,>=1.22, but you have numpy 1.24.4.
The command '/bin/sh -c bash installer.sh $COMPOSER_PYTHON_VERSION  fail' returned a non-zero code: 1
ERROR
ERROR: build step 0 "gcr.io/cloud-builders/docker" failed: step exited with non-zero status: 1
```
