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
I trued to install
anyjson>=0.3.3on Debian with Python 3.6.15 and got this errorin addition to
So I fixed the 1st error with
(found in https://stackoverflow.com/a/69100830/7976758 , https://stackoverflow.com/search?q=%5Bpip%5D+error+in+setup+command%3A+use_2to3+is+invalid)
and then retried:
PS. The bottom line: always show us the entire text of the error message.