Re: Couldn't install numpy on Python 2.7

Liste des GroupesRevenir à cl python 
Sujet : Re: Couldn't install numpy on Python 2.7
De : oscar.j.benjamin (at) *nospam* gmail.com (Oscar Benjamin)
Groupes : comp.lang.python
Date : 13. Jun 2024, 00:44:41
Autres entêtes
Message-ID : <mailman.123.1718232296.2909.python-list@python.org>
References : 1 2 3 4 5 6 7 8 9 10 11
On Wed, 12 Jun 2024 at 23:11, Chris Angelico via Python-list
<python-list@python.org> wrote:
>
On Thu, 13 Jun 2024 at 07:57, Oscar Benjamin via Python-list
<python-list@python.org> wrote:
They are seeing a warning that explicitly says "You can upgrade to a
newer version of Python to solve this". I don't know whether that SSL
warning is directly connected to pip not finding any versions of numpy
but with the available information so far that seems like the first
thing to consider.
>
I think it is; AIUI, with an ancient SSL library, pip is unable to
download packages safely from the current pypi server. So if anyone
actually does need to use pip with Python 2.7, they probably need to
set up a local server, using older encryption protocols (which should
therefore NOT be made accessible to the internet). Since pip can't
contact the upstream pypi, there's no available numpy for it to
install.

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:

$ pip install numpy
DEPRECATION: Python 2.7 reached the end of its life on January 1st,
2020. Please upgrade your Python as Python 2.7 is no longer
maintained. pip 21.0 will drop support for Python 2.7 in January 2021.
More details about Python 2 support in pip can be found at
https://pip.pypa.io/en/latest/development/release-process/#python-2-support
pip 21.0 will remove support for this functionality.
Collecting numpy
  Downloading numpy-1.16.6-cp27-cp27mu-manylinux1_x86_64.whl (17.0 MB)
     |████████████████████████████████| 17.0 MB 14.3 MB/s
Installing collected packages: numpy
Successfully installed numpy-1.16.6

If it is actually the case that pip on Python 2.7 (on Windows) cannot
download from PyPI then an easier option rather than creating a local
server would just be to download the numpy wheels from PyPI using a
browser:

  https://pypi.org/project/numpy/1.15.4/#files

Then you can do

   pip install .\numpy-1.15.4-cp27-none-win_amd64.whl

Using a newer version of Python is still my primary suggestion though.

--
Oscar

Date Sujet#  Auteur
12 Jun 24 * Couldn't install numpy on Python 2.720marc nicole
12 Jun 24 +* Re: Couldn't install numpy on Python 2.73<avi.e.gross
13 Jun 24 i`* Re: Couldn't install numpy on Python 2.72Greg Ewing
13 Jun 24 i `- Re: Couldn't install numpy on Python 2.71Oscar Benjamin
12 Jun 24 +- Re: Couldn't install numpy on Python 2.71MRAB
12 Jun 24 +- Re: Couldn't install numpy on Python 2.71<avi.e.gross
12 Jun 24 +- Re: Couldn't install numpy on Python 2.71Chris Angelico
12 Jun 24 +- Re: Couldn't install numpy on Python 2.71Thomas Passin
12 Jun 24 +- Re: Couldn't install numpy on Python 2.71Chris Angelico
12 Jun 24 +- Re: Couldn't install numpy on Python 2.71<avi.e.gross
12 Jun 24 +- Re: Couldn't install numpy on Python 2.71Chris Angelico
12 Jun 24 +- Re: Couldn't install numpy on Python 2.71Oscar Benjamin
13 Jun 24 +- Re: Couldn't install numpy on Python 2.71Chris Angelico
13 Jun 24 +- Re: Couldn't install numpy on Python 2.71Oscar Benjamin
13 Jun 24 +- Re: Couldn't install numpy on Python 2.71Chris Angelico
13 Jun 24 +- Re: Couldn't install numpy on Python 2.71<avi.e.gross
13 Jun 24 +- Re: Couldn't install numpy on Python 2.71Chris Angelico
13 Jun 24 +- Re: Couldn't install numpy on Python 2.71<avi.e.gross
13 Jun 24 `* Re: Couldn't install numpy on Python 2.72Chris Angelico
13 Jun 24  `- Re: Couldn't install numpy on Python 2.71Chris Green

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal