Sujet : Re: Couldn't install numpy on Python 2.7
De : rosuav (at) *nospam* gmail.com (Chris Angelico)
Groupes : comp.lang.pythonDate : 13. Jun 2024, 00:56:35
Autres entêtes
Message-ID : <mailman.124.1718233009.2909.python-list@python.org>
References : 1 2 3 4 5 6 7 8 9 10 11 12
On Thu, 13 Jun 2024 at 08:46, Oscar Benjamin via Python-list
<
python-list@python.org> wrote:
I don't know much about SSL and related networking things especially
on Windows. I would be surprised if pip on old Python can't install
from current PyPI though. I imagine that something strange has
happened like a new version of pip running on an old version of Python
or old Python on new OS (or old PyCharm...).
>
There is no problem using Python 2.7 with pip and PyPI on this Linux
machine but I guess it has a newer SSL library provided by the OS:
Sadly, I would NOT be surprised if this is indeed a problem on
Windows. You're exactly right - on Linux, it can use a newer SSL
library from the OS. Of course, this does assume that you've updated
your OS, which is far from a guarantee, but since this has security
implications there's a good chance you can update it while retaining a
legacy system.
On Thu, 13 Jun 2024 at 08:51, Greg Ewing via Python-list
<
python-list@python.org> wrote:
On 13/06/24 10:09 am, Chris Angelico wrote:
> So if anyone
> actually does need to use pip with Python 2.7, they probably need to
> set up a local server
>
You should also be able to download a .tar.gz from PyPI and use pip
to install that. Although you'll have to track down the dependencies
yourself in that case.
Also a possibility; in my opinion, losing dependency management is too
big a cost, so I would be inclined to set up a local server. But then,
I would be using a newer SSL library and not have the problem in the
first place.
ChrisA