Deutsch   English   Français   Italiano  
<mailman.123.1718232296.2909.python-list@python.org>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.nobody.at!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: Oscar Benjamin <oscar.j.benjamin@gmail.com>
Newsgroups: comp.lang.python
Subject: Re: Couldn't install numpy on Python 2.7
Date: Wed, 12 Jun 2024 23:44:41 +0100
Lines: 60
Message-ID: <mailman.123.1718232296.2909.python-list@python.org>
References: <CAGJtH9QConSeiZfChKaJxz4wKovKj4XUASm5ckEf=zUuD=Pypw@mail.gmail.com>
 <mailman.111.1718191856.2909.python-list@python.org>
 <L7iaO.9557$IG21.6265@fx15.ams4>
 <004401dabce6$004569e0$00d03da0$@gmail.com>
 <399785e3-0cab-4e38-b219-89863a762d38@mrabarnett.plus.com>
 <004f01dabcef$95d76d60$c1864820$@gmail.com>
 <CAPTjJmo5sEbFWje5JHAREpVOsJHQ-u4ZtHzQAubS2ox41zDt4Q@mail.gmail.com>
 <007a01dabd10$8fda0f50$af8e2df0$@gmail.com>
 <CAHVvXxRTCSYK22Tc1qKz=9+=xbeA-BzgThLEEhqN2RRGxdgmiw@mail.gmail.com>
 <CAPTjJmqmsJcr4cOmT_PK1z9VGeEisOG+wEuiiZ+HALVwfbyHoA@mail.gmail.com>
 <CAHVvXxQFhuQOZHRai+zHOTYQNz83JqdxYvo-c+NORAXsz0N47g@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de LJgEaKFGIpa5m4Xb+JOmTgqPsnijAntn6Z9O6CLSG3Ng==
Cancel-Lock: sha1:qsYf6KMbufeqNYhfyjFa/s9YCkI= sha256:JDKhL7y5H7Voi4EQl7K1TVO/5NKy3z9frVF9euwBKRo=
Return-Path: <oscar.j.benjamin@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
 reason="2048-bit key; unprotected key"
 header.d=gmail.com header.i=@gmail.com header.b=Ek02peCh;
 dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '(which': 0.04; 'pip':
 0.04; 'pypi': 0.05; 'explicitly': 0.07; 'happened': 0.07;
 'subject:install': 0.07; 'suggestion': 0.07; '2.7': 0.09;
 'angelico': 0.09; 'collecting': 0.09; 'library,': 0.09; 'linux':
 0.09; 'numpy': 0.09; 'pypi,': 0.09; 'though.': 0.09; 'url-
 ip:151.101.0.223/32': 0.09; 'url-ip:151.101.128.223/32': 0.09;
 'url-ip:151.101.192.223/32': 0.09; 'url-ip:151.101.64.223/32':
 0.09; 'subject:Python': 0.12; '2021.': 0.16; '2024': 0.16;
 'encryption': 0.16; 'server,': 0.16; 'ssl': 0.16; 'subject:2.7':
 0.16; 'url:development': 0.16; 'url:latest': 0.16; 'url:numpy':
 0.16; 'url:project': 0.16; 'url:pypi': 0.16; 'windows.': 0.16;
 'wrote:': 0.16; 'problem': 0.16; 'python': 0.16; 'reached': 0.17;
 'says': 0.17; 'probably': 0.17; "can't": 0.17; 'solve': 0.19;
 'installing': 0.19; 'server.': 0.19; 'thu,': 0.19; 'to:addr
 :python-list': 0.20; 'option': 0.20; 'unable': 0.21; 'machine':
 0.22; 'downloading': 0.22; 'version': 0.23; 'install': 0.23;
 'installed': 0.23; 'cannot': 0.25; 'anyone': 0.25; 'seems': 0.26;
 'jun': 0.26; 'library': 0.26; 'creating': 0.27; 'local': 0.27;
 'old': 0.27; 'chris': 0.28; 'packages': 0.31; 'think': 0.32;
 'collected': 0.32; 'guess': 0.32; 'python-list': 0.32; 'message-
 id:@mail.gmail.com': 0.32; 'but': 0.32; 'there': 0.33; 'server':
 0.33; 'header:In-Reply-To:1': 0.34; 'received:google.com': 0.34;
 'running': 0.34; 'url-ip:104.17/16': 0.35; 'from:addr:gmail.com':
 0.35; 'using': 0.37; 'use': 0.39; 'finding': 0.39; 'seeing': 0.39;
 'wed,': 0.39; 'still': 0.40; 'something': 0.40; 'should': 0.40;
 "there's": 0.61; 'url-ip:151.101.0/24': 0.62; 'url-
 ip:151.101.128/24': 0.62; 'url-ip:151.101.192/24': 0.62; 'url-
 ip:151.101.64/24': 0.62; 'imagine': 0.64; 'upgrade': 0.64;
 'url:4': 0.64; 'your': 0.64; 'primary': 0.67; '"you': 0.69;
 'drop': 0.69; 'contact': 0.70; 'older': 0.70; 'january': 0.71;
 'longer': 0.71; 'life': 0.77; 'install.': 0.84; 'mb)': 0.84;
 'oscar': 0.84; 'surprised': 0.84; 'warning': 0.84; 'wheels': 0.84;
 '8bit%:98': 0.91; 'ancient': 0.91; 'safely': 0.91; 'skip:n 40':
 0.91
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1718232293; x=1718837093; darn=python.org;
 h=content-transfer-encoding:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:from:to:cc:subject:date
 :message-id:reply-to;
 bh=3sHS2NvReIKpHIQ7H06xOyxBA6aGnBtkSBsICYhyXMw=;
 b=Ek02peChBH60zW/Kik44Q2uX2H2QxcYqUAF3tl62v+bj65mtZEEIA/KFqm42Z1sGfd
 zvEDIM8zinqPMaPBH0EEWyQepnqrV4bci3vCIk0XC/Su+7HkcDaaP5C9a8oLGWIccuNg
 8ZXN7VIEXl226xZf9wBp8udz5eV0atZmoJs0xGsd1VSPQDST0Q/U4cpQAwPjDBSupt5z
 G4zK9oliGNs9+Kr4lmLfE5HUg9K0FWjqZ1DGtJVmaoMo7FKPp+KuItwKSq5Xla2Hv4yg
 DQuYTyud5zSOaG8UFHU8BO/9VWJW7nkKUQNvq48BoNDCPo5gBAS604l5efdvDO9lEx8i
 bBRA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1718232293; x=1718837093;
 h=content-transfer-encoding:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=3sHS2NvReIKpHIQ7H06xOyxBA6aGnBtkSBsICYhyXMw=;
 b=FDqVc3S0NvpP2HLnCIeUA0YMvmc/OkhOz3OFUgL8LFitG0hSI6m01mWa50pITl6YL6
 UOMfXtV+v6p+hFrix0rmGxsbF+XRvWsbwtS5OfIx4KIwibIgJ1eTK5FzA8qh11yZo1fw
 8US7YRC3fHFD2/0eufY3W+yZ9JHehpY5Ij/YksCQ/sSzGtcALoQgCl5XGvF4duzJ1vCr
 3OOV3npdlZ8Vz074FozQjTyqty/OxBRaqSGXRhpTpat1cGGeiqELrRIrMP2sgx9klU65
 JOfAp2QiFp92UJdplAvA/vTvCl38YqLSwWqPaG6uZxoOm6INbdCKzgfumdVOphLeFopV
 HHKQ==
X-Gm-Message-State: AOJu0YyIcskXywwxRsiV0AIZOkbAuqTA1V9s3jv/ljp6qhYlS9Mo5DQn
 2NDQIny86uqzEOoBcuL97v9Ibx8V6mXiwlWNxPTshF4ZnOgPx02aydnKSEy17ip8r3aK8BRmQGu
 F7SlaDsZon9k780Gt0t8zBaJ40QpBr1Oo
X-Google-Smtp-Source: AGHT+IG/r5vwn/Phl8J7Ufg7xpu9bCT+N5oFKj7DfYzCBZ5MtwHudkGwZdeaBewPDlh6Q0vs3OZQbHXDhbJQEuVIzK0=
X-Received: by 2002:ac2:4302:0:b0:52c:8a4a:e3a3 with SMTP id
 2adb3069b0e04-52c9a4051ecmr2081329e87.57.1718232292659; Wed, 12 Jun 2024
 15:44:52 -0700 (PDT)
In-Reply-To: <CAPTjJmqmsJcr4cOmT_PK1z9VGeEisOG+wEuiiZ+HALVwfbyHoA@mail.gmail.com>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
 <python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
 <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
 <mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <CAHVvXxQFhuQOZHRai+zHOTYQNz83JqdxYvo-c+NORAXsz0N47g@mail.gmail.com>
X-Mailman-Original-References: <CAGJtH9QConSeiZfChKaJxz4wKovKj4XUASm5ckEf=zUuD=Pypw@mail.gmail.com>
 <mailman.111.1718191856.2909.python-list@python.org>
 <L7iaO.9557$IG21.6265@fx15.ams4>
 <004401dabce6$004569e0$00d03da0$@gmail.com>
 <399785e3-0cab-4e38-b219-89863a762d38@mrabarnett.plus.com>
 <004f01dabcef$95d76d60$c1864820$@gmail.com>
 <CAPTjJmo5sEbFWje5JHAREpVOsJHQ-u4ZtHzQAubS2ox41zDt4Q@mail.gmail.com>
 <007a01dabd10$8fda0f50$af8e2df0$@gmail.com>
 <CAHVvXxRTCSYK22Tc1qKz=9+=xbeA-BzgThLEEhqN2RRGxdgmiw@mail.gmail.com>
 <CAPTjJmqmsJcr4cOmT_PK1z9VGeEisOG+wEuiiZ+HALVwfbyHoA@mail.gmail.com>
Bytes: 9823

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)
     |=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=
=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=
=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=
=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88| 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