Requirement on older version of chardet breaks pip installation with other packages
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
## Describe the bug
When installing additional python libraries that depend on newer releases of chardet, we get a pip error.
**Command Name**
`pip`
**Errors:**
```
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
azure-cli 2.43.0 requires chardet~=3.0.4, but you have chardet 5.1.0 which is incompatible.
```
## To Reproduce:
Install a python package that requires chardet v4 or newer.
## Expected Behavior
The az-cli package should be compatible.
## Environment Summary
```
macOS-13.1-arm64-arm-64bit
Python 3.10.9
Installer: PIP
azure-cli 2.43.0
```
## Additional Context
This is not the only package that can cause this issue. Most of the dependencies listed under src/azure-cli/setup.py are stricter than they need to be.
Please do not suggest to install the CLI in a separate virtual env as it would double the azure footprint in a container and we already have close to 1GB for the Azure SDK files alone.
Contributor guide
Assessment
This issue has not been assessed yet.