I participate in a legacy project development, which uses python version 3.6.15. I installed this version with pyenv and created the virtual environment like that:
python -m pip install virtualenv
python -m virtualenv venv
source venv/bin/activate
So the Python version is correct.
$ python --version
Python 3.6.15
$ which python
.../venv/bin/python
But when I try to install packages from the requirements.txt
I face a problems like this one:
ERROR: Could not find a version that satisfies the requirement anyjson>=0.3.3 (from kombu) (from versions: 0.1, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.3, 0.3.1, 0.3.2, 0.3.3)
ERROR: No matching distribution found for anyjson>=0.3.3
It can't find a package version, but package version is listed in the from version:
section. And it happens in multiple cases. But in the Docker image which uses docker.io/library/python:3.6.15
as a base everything is installed successfully. What could be the problem of this behavior?
OS: Ubuntu 22.04