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

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

Path: ...!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!not-for-mail
From: Mats Wichmann <mats@wichmann.us>
Newsgroups: comp.lang.python
Subject: Re: [Tutor] How to install tensorflow on Python 2.7 in Windows?
Date: Wed, 26 Jun 2024 13:40:12 -0600
Lines: 33
Message-ID: <mailman.177.1719431118.2909.python-list@python.org>
References: <CAGJtH9TyfQXH6yrHCqiwkrSQF2fa3z7EFOUwuPMBJ-BovxSKvA@mail.gmail.com>
 <fbb9a60d-5ece-40f2-a31f-634a1c76deec@wichmann.us>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de 2TIjHRx+J16D9//LFaCT0gHioZQhJWLOLJk06lgJXduw==
Cancel-Lock: sha1:K86641D/SKk/lIFiit7JktE/Nyw= sha256:ZqwvHXHdcTbNooPxEBlejgIkBrVOFeVoO+PSo5m9yuU=
Return-Path: <mats@wichmann.us>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
 reason="1024-bit key; unprotected key"
 header.d=pobox.com header.i=@pobox.com header.b=lLfe330g;
 dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.007
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '(which': 0.04;
 'subject:Windows': 0.07; 'subject:install': 0.07; '2.7': 0.09;
 'linux': 0.09; 'numpy': 0.09; 'tensorflow': 0.09; "they've": 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; '2.7.': 0.16;
 'bits': 0.16; 'gpu': 0.16; 'indeed': 0.16; 'nvidia': 0.16;
 'received:64.147': 0.16; 'releases': 0.16; 'subject:2.7': 0.16;
 'support:': 0.16; 'url:project': 0.16; 'url:pypi': 0.16;
 'windows.': 0.16; 'wrote:': 0.16; 'problem': 0.16; 'python': 0.16;
 "can't": 0.17; 'hardware': 0.19; 'to:addr:python-list': 0.20;
 'subject:: [': 0.21; 'subject:] ': 0.21; 'problem,': 0.22; 'to:no
 real name:2**1': 0.22; 'version': 0.23; 'install': 0.23;
 'subject:How': 0.23; 'run': 0.23; 'tried': 0.26; 'again,': 0.26;
 'ecosystem': 0.26; 'party': 0.26; 'old': 0.27; 'goes': 0.28;
 'environment': 0.29; 'header:User-Agent:1': 0.30; 'think': 0.32;
 'official': 0.32; '(this': 0.32; 'amounts': 0.32; 'anybody': 0.32;
 'subject:Tutor': 0.32; 'unless': 0.32; 'but': 0.32; "i'm": 0.33;
 'there': 0.33; 'windows': 0.34; 'able': 0.34; 'work.': 0.34;
 'header:In-Reply-To:1': 0.34; 'running': 0.34; 'trying': 0.35;
 'really': 0.37; "it's": 0.37; 'received:192.168': 0.37; 'file':
 0.38; 'way': 0.38; 'least': 0.39; 'use': 0.39; 'seeing': 0.39;
 'stopped': 0.40; 'something': 0.40; 'want': 0.40; 'try': 0.40;
 'reference': 0.60; '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; 'providing': 0.63; 'expert': 0.64;
 'your': 0.64; 'box': 0.65; 'produce': 0.65; 'years': 0.65;
 'nearly': 0.67; 'received:64': 0.67; 'vast': 0.69; 'working,':
 0.69; 'site': 0.70; '2021': 0.71; 'january': 0.71; 'longer': 0.71;
 'produces': 0.76; 'up,': 0.84; 'battle': 0.84; 'combinations':
 0.84; 'good,': 0.84; 'intel,': 0.84; 'sure.': 0.84; 'uphill':
 0.84; 'ancient': 0.91
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=message-id
 :date:mime-version:subject:to:references:from:in-reply-to
 :content-type:content-transfer-encoding; s=sasl; bh=f+JdDxnzysYK
 uXEG/Ht6Ixm0XTt3yAK+s7QWaI3davQ=; b=lLfe330g4x9amzv6gu4AAckLTuiG
 7DTctH39Op5oDc2ZQjkPYbhw30SRDAI+/TZ/3I3TbE3QYA0o2fRfD4qiZEQZwzh3
 xS3eOzC/zr2rFYjLlEyFjPrk4pqiUe8Rji2fvpk0gSwjWfw/sc3sP0MGYv1V/r2d
 7fC4PzlKkKvHTr0=
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=wichmann.us;
 h=message-id:date:mime-version:subject:to:references:from:in-reply-to:content-type:content-transfer-encoding;
 s=2018-07.pbsmtp; bh=f+JdDxnzysYKuXEG/Ht6Ixm0XTt3yAK+s7QWaI3davQ=;
 b=Lx89ez9u8dOKrnzwLnsBzN+eF3mVh5QC9pMCBcwZZQDjOBz7YYQQRYjmkpxgLpb/rldy2Bv5TkYcmm826c/q+l+zvEHlpay4HDyzDPx+vhTxQtZoVMLF1OIiAKeU/7HTz3qkvEUtIAegsfxibT0AKr8SEw/VKf1xEFufrt8qGAQ=
User-Agent: Mozilla Thunderbird
Content-Language: en-US
Autocrypt: addr=mats@wichmann.us; keydata=
 xsDiBD9xp6oRBAC1vd3YI8Gcr1CxpV1gldNQu0uQsNaICDk+Ai3+R163s/P83JOYG+SBEA3P
 v7iZx70qpQ3RzP7KrjF1Nm6j0em9ccUX2fPQUCAxXw5Hiq7CSMiwQQZRI6shcnyMh9XTKViT
 WK5MrKDyvjDEn7epjKzKwPS5SG039l6XaOKU0A4uGwCgsNqUQqC0gMMcbKlJV8ql58iKmbMD
 /ii8FPQrXmyS/FnsPs7UddV5qMHKm7NUH5oiKuMVyakInRyq9iIxuu3D4Ec6mWRKcGsjmIkW
 HXCSz0aefs6dsqNqpU54cYioJ3wP5LzHK7oclgJPryVt5Qezbdutf8SQf8gVkaNIlkxwGUzi
 bKTZ6CHzwlz9nNgeel0XPUcZzFxGA/4paeCg2rMSVuAhUQbsLYHu4XzTs9P16zaXkrtxc4m5
 b+BF5xsLgTpyO5l859XudS2Gp+7/Y37dAU4QlyGGOboWmF1y9U5DnzBwG8ghsnym+ga58MJh
 LdRdQQ6xQolCpEXOuzm40f2r5uMxF3KOJ7WpIPuGAkeCPru9BmlATH+zOs0gTWF0cyBXaWNo
 bWFubiA8bWF0c0B3aWNobWFubi51cz7CYQQTEQIAIQIbAwYLCQgHAwIDFQIDAxYCAQIeAQIX
 gAUCT0VyZwIZAQAKCRDAMaCQc9hUxiZBAJ9cWziGp7hVfsu5T+cQptc3rLNndQCgrZh8u5LW
 BfJ5e/Y+3PwZ8UEm+ELOwE0EP5is8BAEAMtwzcA8TYf5UTjDMgwcSNoErTc9ag+IX05QFgL8
 aF8sfJRv5atcitqQy0gSIsOzI+L/AFdPN/+QQI3dL1tCq14t32KPDtigDhzm6jVPXX5z+V9u
 xnD8XTp+ZvNcWoHXjViM8aXeLLEiCpiVCho307h3XShvqoKINWRQWeAsKKDDAAMFA/48zaey
 wiiEyvI0meJ1KkNHxdLP0yLODr1WV6j9xkPkLWOaIDw7dlwEOlF1N1YtZ2wa0p1wsttdIbIx
 ffgwXmcH4zrdxUIMz3U0BqYzk5H+5cYFXECXTFVOmweS+JECYMj80PjRoKCO1eVO1N30zksB
 36NnhZWPRWIhjK3ZarIYH8JGBBgRAgAGBQI/mKzwAAoJEMAxoJBz2FTG6VEAoKDYHfDp5Q3q
 PuPvPahCE9HsXMgAAJ9INTqcLSJrOfyJ8q95nBO1T26H2Q==
In-Reply-To: <CAGJtH9TyfQXH6yrHCqiwkrSQF2fa3z7EFOUwuPMBJ-BovxSKvA@mail.gmail.com>
X-Pobox-Relay-ID: E873964A-33F3-11EF-B4C2-5B6DE52EC81B-81526775!pb-smtp1.pobox.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: <fbb9a60d-5ece-40f2-a31f-634a1c76deec@wichmann.us>
X-Mailman-Original-References: <CAGJtH9TyfQXH6yrHCqiwkrSQF2fa3z7EFOUwuPMBJ-BovxSKvA@mail.gmail.com>
Bytes: 8217

On 6/26/24 09:29, marc nicole wrote:
> Browsing the available version of tensorflow for the dates before January
> 2021 (date when Python 2.7 stopped being supported) I can't find a
> tensorflow version for Python 2.7 that works under Windows.
> 
> The reference site I use is https://pypi.org/project/tensorflow/
> 
> Anybody can point out a compatible .whl file with Python 2.7 and Windows?

The last version of tensorflow to support Python 2.7 was indeed 2.1, and 
I don't think there was *ever* an official Windows wheel for Python 2, 
but I'm not that expert to be completely sure. tensorflow support on 
Windows has never been good, and in a way they've given up, at least 
part of the fight: they no longer produce official releases for Windows 
with GPU support (although you may be able to get one from the vendor 
that produces the GPU hardware like Nvidia or Intel, or from a third 
party like Amazon Web Services). The official recommendation for WIndows 
used to be "build your own" (which nearly always failed), then for a few 
years they tried making Windows builds, now the new "best practice" 
recommendation is to install on WSL if you want to run on a Windows box 
(this *might* work for you, unless you're also on an ancient Windows 
that won't run WSL).  Or, try seeing if you can find a docker setup 
(which, again, will give you a Linux environment running tensorflow).

Note that like your other problem, getting numpy going, this is going to 
be an uphill battle trying to cobble things together to run on 2.7. 
This is really the problem when something like Python goes out of date / 
out of support: it's not that it magically stops working, it's that vast 
amounts of the ecosystem around it stop providing support for *their* 
bits on the old version, and the combinations become progressively 
harder to make work.