[Python] Unable to upgrade PIP or install modules in Python 3.9

Discussão em 'Python' iniciado por Stack, Outubro 4, 2024.

  1. Stack

    Stack Membro Participativo

    I'm trying to install PyPDF2 into a work laptop, and unfortunately, I get the following errors in the command prompt:

    WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/pypdf2/
    ERROR: Could not find a version that satisfies the requirement PyPDF2 (from versions: none)
    ERROR: No matching distribution found for PyPDF2


    The warning also repeats five times total. I tried to use pip show to see if PyPDF2 was in my pip, and of course, it wasn't. I tried upgrading pip using

    python -m pip install --upgrade pip


    leading to the exact same warning I experienced before and pip aparently already being updated?

    Requirement already satisfied: pip in c:\python39-64\lib\site-packages (21.2.4)
    WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/pip/


    This is a pretty new work laptop, and this is my first time using python with it. It's worth mentioning that I have two versions installed on the laptop, 3.9 and 2.7. I can't delete 2.7 as I need admin permission, but worst case I could just do that. Just looking for some troubleshooting tips and/or ideas for these warnings I keep getting.

    Continue reading...

Compartilhe esta Página