Part of #18682
Python 3.9 is EoL in 2025-10, so it's a good time to move to 3.10. Also,
upgrade other dependencies.
refs:
- #17425
## Personal notes for upgrade
### Docker Base Images and Ubuntu Versions
| Dockerfile | Base Image | Ubuntu Version |
|------------|------------|----------------|
| Dockerfile.ci_arm | `ubuntu:22.04` | **Ubuntu 22.04** |
| Dockerfile.ci_cpu | `ubuntu:22.04` | **Ubuntu 22.04** |
| Dockerfile.ci_gpu | `nvidia/cuda:12.4.1-cudnn-devel-ubuntu22.04` |
**Ubuntu 22.04** |
| Dockerfile.ci_lint | `ubuntu:22.04` | **Ubuntu 22.04** |
| Dockerfile.ci_wasm | `ubuntu:22.04` | **Ubuntu 22.04** |
Ubuntu 20.04 LTS is [EoL on
2025/5](https://ubuntu.com/about/release-cycle) so we'll deprecate
ubuntu 20.04 images
This PR changes all ci_ to install TVM Python dependencies in a
virtualenv separate from the system Python dependencies.
Sets the stage for adding the poetry-based dependency
generator to the CI container build process.
* Always install into a python venv in ci containers.
* Respect Dockerfile ENV PATH modifications in
docker/bash.sh lookups.