Python Install Error

1,585 views
Skip to first unread message

James Pike

unread,
Oct 7, 2022, 9:26:46 AM10/7/22
to Alt-F
I'm trying to install Python from the Alt-F Packages page, but keep getting an error:

python_error.png
I'm confused at this. To install Python, you need Python already installed? Or is that a different part needed?

Alex Khroustalev

unread,
Oct 7, 2022, 11:15:12 AM10/7/22
to al...@googlegroups.com
Hello.

From the log message I can see that Alt-F’s Python 2.7 was installed. But upon initial config it wants to install the latest PIP (Python’s proper package manager) which dropped support for versions <3.7.

You could either manually download and install PIP for Python 2.7 or I would recommend installing Python 3 from Entware

Best regards,
Alex 

On 7 Oct 2022, at 16:26, James Pike <lords...@gmail.com> wrote:

I'm trying to install Python from the Alt-F Packages page, but keep getting an error:

python_error.png
I'm confused at this. To install Python, you need Python already installed? Or is that a different part needed?

--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/alt-f/936c74b5-6043-49cc-9841-aaf8e65775e1n%40googlegroups.com.
python_error.png

James Pike

unread,
Oct 7, 2022, 1:02:41 PM10/7/22
to Alt-F
I found Python3 in the Entware section and installed it. However everything under Alt-F, still fails with the pip error. So I installed pip for 2.7 under Entware, but still encountering errors. 

Alex Khroustalev

unread,
Oct 8, 2022, 7:22:38 AM10/8/22
to 'z pascal' via Alt-F
You may try to download https://bootstrap.pypa.io/pip/2.7/get-pip.py to /tmp/get-pip.py and run it manually. Or replace download link in Alt-F Python installation scripts.


Alex

James Pike

unread,
Oct 8, 2022, 12:40:49 PM10/8/22
to al...@googlegroups.com
I'm still learning Linux, so that I think would be beyond my scope of what I can do. 

You received this message because you are subscribed to a topic in the Google Groups "Alt-F" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/alt-f/FF0r2FeWIsw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to alt-f+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/alt-f/EA02002A-D463-41D8-AE2B-734AA628D659%40mac.com.

James Pike

unread,
Oct 11, 2022, 8:54:39 AM10/11/22
to Alt-F
So I tried to install the 2.7 pip-py via Putty, but it still gives errors about 2,7 reaching end of life. So it won't install. Is there a way to update Python to the latest version in Alt-F?

Cary Roys

unread,
Apr 30, 2023, 7:15:54 PM4/30/23
to Alt-F
Ran into this today.

The problem I am running into is chicken/egg.

So to successfully run the 2.7 copy of get-pip.py, you need some updated root certs.  The easy way to get those updated root certs is to install open SSL.

The way to upgrade openssl is via ipkg, which requires pip.  And around and around we go...  There's more issues than just this - some install script seems like it has a bad URI, which gets a redirect or something?  I haven't dug into the zip file embedded into get-pip.py.

The errors I'm getting are:

Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(CertificateError("hostname 'pypi.org' doesn't match u'www.python.org'",),)) - skipping
ERROR: Could not find a version that satisfies the requirement pip<21.0 (from versions: none)
ERROR: No matching distribution found for pip<21.0


Since I was also using bigger drives now, I ran into a limitation of ipkg, which I had to work around with this guy:


Hope this helps someone!  This is probably my last rodeo with my DNS-320 before I replace it with something more modern and powerful.
Reply all
Reply to author
Forward
0 new messages