vs 2022 + python add package matplotlib error ?

cristopheB 551 Reputation points
2024-01-17T10:38:37.31+00:00

Hello, we used vs 2022 edition pro, in c# i can download package and so on.

I m just to discover python, i read this page:

https://learn.microsoft.com/en-us/visualstudio/python/tutorial-working-with-python-in-visual-studio-step-05-installing-packages?view=vs-2022

But when i run the package matplotlib i have this error ->

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001F886E1A0B0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/matplotlib/

Fourth time i have this error and after,

ERROR: Could not find a version that satisfies the requirement matplotlib (from versions: none)

ERROR: No matching distribution found for matplotlib How i can resolve this ?

thanks for your help

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,419 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 32,861 Reputation points Microsoft Vendor
    2024-01-18T09:04:42.8133333+00:00

    Hello @cristopheB ,

    Welcome to Microsoft Q&A forum.

    Looks like this issue is caused by network/connection.

    Did you set some configurations for proxy/DNS server/VPN…?

    Is there any limitation on your network?

    Perhaps you can try to disable the "automatically detect settings" option from Settings > Network & internet > Automatic proxy setup > Automatically detect settings.

    Best Regards,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.