[Python] ProxyError - Cannot install Python Librairies in Excel

Discussão em 'Python' iniciado por Stack, Maio 28, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to install the python library "fluids" in Excel using =PY( !pip install fluids.

    Error code : [33mWARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 400 Bad Request'))': /simple/fluids/[0m[33m [0m[33mWARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 400 Bad Request'))': /simple/fluids/[0m[33m [0m[33mWARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 400 Bad Request'))': /simple/fluids/[0m[33m [0m[33mWARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 400 Bad Request'))': /simple/fluids/[0m[33m [0m[33mWARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 400 Bad Request'))': /simple/fluids/[0m[33m [0m[31mERROR: Could not find a version that satisfies the requirement fluids (from versions: none)[0m[31m [0m[31mERROR: No matching distribution found for fluids[0m[31m [0m


    Default librairies such as numpy work very well. When doing =PY( !pip install numpy, it says : Requirement already satisfied: numpy in /app/officepy/lib/python3.12/site-packages (1.26.4)

    Fluids work very will in spyder and was installed using !pip install fluids.

    I am not sure what ProxyError is. Maybye that my work environment doesn't allow this command? But I am able to do it in spyder...

    I did remove the proxy using :

    import os

    os.environ.pop('HTTP_PROXY', None)
    os.environ.pop('http_proxy', None)
    os.environ.pop('HTTPS_PROXY', None)
    os.environ.pop('https_proxy', None)


    The error code is slightly different :

    [33mWARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f984dc268a0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/fluids/[0m[33m [0m[33mWARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f984e83fc20>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/fluids/[0m[33m [0m[33mWARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f984dc2b8c0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/fluids/[0m[33m [0m[33mWARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f984dc2be60>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/fluids/[0m[33m [0m[33mWARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f984dc2bef0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/fluids/[0m[33m [0m[31mERROR: Could not find a version that satisfies the requirement fluids (from versions: none)[0m[31m [0m[31mERROR: No matching distribution found for fluids[0m[31m [0m

    I don't know what do to to make it work in Excel. I red that I could use a virtual environment, but I lack the ability to do it...

    Thank you!

    Continue reading...

Compartilhe esta Página