• Re: Couldn't install numpy on Python 2.7

    From Gordinator@21:1/5 to marc nicole on Wed Jun 12 15:19:23 2024
    On 12/06/2024 12:30, marc nicole wrote:
    I am trying to install numpy library on Python 2.7.15 in PyCharm but the error message I get is:

    ERROR: Could not find a version that satisfies the requirement numpy (from
    versions: none)
    ERROR: No matching distribution found for numpy
    c:\python27\lib\site-packages\pip\_vendor\urllib3\util\ssl_.py:164:
    InsecurePlatformWarning: A true SSLContext object is not available. This
    prevents urllib3 fro
    m configuring SSL appropriately and may cause certain SSL connections to
    fail. You can upgrade to a newer version of Python to solve this. For more >> information, see
    https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
    InsecurePlatformWarning,


    Any clues?

    Why are you using Python 2? Come on, it's been 16 years. Ya gotta move
    on at some point.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From MRAB@21:1/5 to AVI GROSS via Python-list on Wed Jun 12 17:55:43 2024
    On 2024-06-12 17:31, AVI GROSS via Python-list wrote:
    I am sure there is inertia to move from an older product and some people
    need a reason like this where the old becomes untenable.

    It seems Microsoft is having a problem where something lik 2/3 of Windows users have not upgraded from Windows 10 after many years and have set a deadline in a year or so for stopping updates. In that case, hardware was a concern for some as Windows 11 did not work on their machines. With
    upgrading python, the main concern is having to get someone to examine old code and try to make it compatible.

    In the case of Windows, my PC is over 10 years old yet performs
    perfectly well for my needs. It can't run Windows 11. Therefore, I'm in
    the process of migrating to Linux, and I still have over a year to
    achieve that before support ends.

    But anyone doing new code in Python 2 in recent years should ...

    Indeed...

    -----Original Message-----
    From: Python-list <python-list-bounces+avi.e.gross=gmail.com@python.org> On Behalf Of Gordinator via Python-list
    Sent: Wednesday, June 12, 2024 10:19 AM
    To: python-list@python.org
    Subject: Re: Couldn't install numpy on Python 2.7

    On 12/06/2024 12:30, marc nicole wrote:
    I am trying to install numpy library on Python 2.7.15 in PyCharm but the
    error message I get is:

    ERROR: Could not find a version that satisfies the requirement numpy (from >>> versions: none)
    ERROR: No matching distribution found for numpy
    c:\python27\lib\site-packages\pip\_vendor\urllib3\util\ssl_.py:164:
    InsecurePlatformWarning: A true SSLContext object is not available. This >>> prevents urllib3 fro
    m configuring SSL appropriately and may cause certain SSL connections to >>> fail. You can upgrade to a newer version of Python to solve this. For
    more
    information, see
    https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings >>> InsecurePlatformWarning,


    Any clues?

    Why are you using Python 2? Come on, it's been 16 years. Ya gotta move
    on at some point.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Thomas Passin@21:1/5 to Chris Angelico via Python-list on Wed Jun 12 14:32:44 2024
    On 6/12/2024 1:59 PM, Chris Angelico via Python-list wrote:
    On Thu, 13 Jun 2024 at 03:41, AVI GROSS via Python-list <python-list@python.org> wrote:

    Change is hard even when it may be necessary.

    The argument often is about whether some things are necessary or not.

    Python made a decision but clearly not a unanimous one.

    What decision? To not release any new versions of Python 2? That isn't actually the OP's problem here - the Python interpreter runs just
    fine. But there's no numpy build for the OP's hardware and Python 2.7.

    So if you want to complain about Python 2.7 being dead, all you have
    to do is go through all of the popular packages and build binaries for
    all modern computers. If that sounds easy, go ahead and do it; if it
    sounds hard, realise that open source is not a democracy, and you
    can't demand that other people do more and more and more unpaid work
    just because you can't be bothered upgrading your code.

    I support a Tomcat project that has some java code and most of the code
    is for Jython 2.7. Jython 2.7 is approximately on a par with Python
    2.7. Any Python-only code from the standard library will probably run,
    but of course any C extensions cannot. The nice thing about using
    Jython in a java environment is that it can call any java object, and
    java code can call Jython objects and their methods.

    The project cannot move to a Python-3 compatible version because Jython
    3.xx doesn't exist and may never exist. The saving grace is that my
    project doesn't have to use packages like numpy, scipy, and so forth.
    Also, the project is very mature and almost certainly won't need to
    create functionality such packages would enable. It would be nice to be
    able to use some newer parts of the standard library, but there it is.
    Jython does support "from __future__ import" and I make use of that for
    the print function and the like.

    My current PC was not upgradable because of the new hardware requirement
    Microsoft decided was needed for Windows 11.

    Yes, and that's a good reason to switch to Linux for the older computer.

    I have a 2012-vintage laptop that in modern terms has a very small
    supply of RAM and a very slow hard drive. When my newer Windows 10
    computer was going to be out of service for a while, I put a Linux
    distro on an external SSD and copied things I needed to work on to it, including my Thunderbird email profile directory.

    Thunderbird and everything else worked perfectly for me during that
    week. True, there were a few Windows-only programs I missed, but I used
    other similar programs even if I didn't like them as much. It's amazing
    how little resources Linux installs need, even with a GUI. Of course,
    4GB RAM is limiting whether you are on Linux or Windows - you can't
    avoid shuffling all those GUI bits around - but with a little care it
    worked great. And with the external SSD the laptop was a lot snappier
    than it ever was when it was new.

    I mention this in the context of examples of why even people who are fairly >> knowledgeable do not feel much need to fix what does not feel broken.

    It doesn't feel broken, right up until it does. The OP has discovered
    that it *IS* broken. Whining that it doesn't "feel broken" is nonsense
    when it is, in fact, not working.

    When is Python 4 coming?

    Is this just another content-free whine, or are you actually curious
    about the planned future of Python? If the latter, there is **PLENTY**
    of information out there and I don't need to repeat it here.

    Please don't FUD.

    ChrisA

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Ewing@21:1/5 to avi.e.gross@gmail.com on Thu Jun 13 10:49:18 2024
    On 13/06/24 4:31 am, avi.e.gross@gmail.com wrote:
    It seems Microsoft is having a problem where something lik 2/3 of Windows users have not upgraded from Windows 10 after many years

    At least Python 3 is a clear improvement over Python 2 in many ways.
    Whereas the only thing Microsoft seems to have done with Windows in
    recent times is change it in ways that nobody wants, so there is
    understandable resistance to upgrading even if it's possible.

    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.

    --
    Greg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Green@21:1/5 to Chris Angelico on Thu Jun 13 09:54:36 2024
    Chris Angelico <rosuav@gmail.com> wrote:
    On Thu, 13 Jun 2024 at 10:58, <avi.e.gross@gmail.com> wrote:

    Chris,

    You seem to have perceived an insult that I remain unaware of.

    If you're not aware that you're saying this, then don't say it.

    Er, um, that really makes no sense! :-)

    How can one not say something that one isn't aware of saying?

    --
    Chris Green
    ยท

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ethan Furman@21:1/5 to All on Thu Jun 13 10:33:29 2024
    Hey, everyone!

    I believe the original question has been answered, and tempers seem to be flaring in sub-threads, so let's call this
    thread done and move on to other interesting topics.

    Thank you for your support!

    --
    ~Ethan~
    Moderator

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)