Python3 pip does not see all versions of packages

Let me explain the essence of the problem from beginning to end.

The idea is to set up a kubernetes cluster using kubespray.

One of the steps is to install ansible and other packages described in the requirements.txt file (I will omit the attempt itself, I will only say that installing ansible version 9.6.0 (required for the last github commit for kubespray), the error looks like this (from versions: none)).

So, I put the cluster installation issue aside and focused on installing ansible version 9.6.1.

Since yum doesn’t allow me to install packages from standard repositories like mirrorlist, I had to replace them with vault, so it was possible to install packages through yum directly.

sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*^C sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*.
Resource: https://techglimpse.com/failed-metadata-repo-appstream-centos-8/

If I try to install python and with it PIP via yum, then I get version 3.6.

If I try to install Python manually, then I can install whatever python I want, but for some reason I can’t get the SSL module to work and I get this error.
https://serverspace.ru/support/help/obnovlenie-python-centos/?utm_source=yandex.ru&utm_medium=organic&utm_campaign=yandex.ru&utm_referrer=yandex.ru
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/ansible-core/.

I’m trying to fix it by using the flags:
–trusted-host pypi.python.org –index-url=http://pypi.python.org/simple/
Requests go through, but I get an error as an example (same if I specify ansible or ansible_core):
ERROR: No matching distribution found for jinja2>=3.0.0.0 (A problem for any package)

I also tried using the –with-openssl=”/etc/pki/tls” flag when I run the ./configured command, the installation finishes seemingly without error, but the certificate problem doesn’t go away.

So the only option I have is to download the packages manually, try to install them, find the dependencies, download them manually again and so on until all dependencies are installed.
Example error:
ERROR: Could not find a version that satisfies the requirement setuptools>=66.1.0

I hope I have described the problem in enough detail.
PS: I tried installing ansible using centos7 and 8 image.
I also tried installing ansible using PIPX, same problem
Maybe I’m doing something wrong from the beginning

All the details above

New contributor

Alexey Arhipov is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật