Python 不可能通过pip安装安装软件包(pywin32、win10toast和许多其他软件包)

Python 不可能通过pip安装安装软件包(pywin32、win10toast和许多其他软件包),python,pip,pywin32,python-3.8,Python,Pip,Pywin32,Python 3.8,我已经安装了python 3.8,需要安装pywin pywin32 然而,皮普找不到它。注意,我以前曾尝试在终端中使用pip install命令安装其他一些软件包,但这些软件包也不起作用 一些可能相关的数据点: python 3.8.1的新安装 windows 10 x64 python 3.7以前安装在机器上 我正在使用pycharm 2019.3.3。在venv/Lib/site软件包中显示安装了setuptools和pip 我在pycharm中使用终端,因为它是唯一一个让我转到路径系统C

我已经安装了python 3.8,需要安装pywin pywin32

然而,皮普找不到它。注意,我以前曾尝试在终端中使用pip install命令安装其他一些软件包,但这些软件包也不起作用

一些可能相关的数据点:

python 3.8.1的新安装

windows 10 x64

python 3.7以前安装在机器上

我正在使用pycharm 2019.3.3。在venv/Lib/site软件包中显示安装了setuptools和pip

我在pycharm中使用终端,因为它是唯一一个让我转到路径系统C:-->windows的正常命令总是在M:,即使我更改目录,它也总是回到M:我不知道为什么

我尝试的是:

*cmd -> netsh winhttp show proxy  #As I thought the installation problems might relate to the proxy. But it doesn't because at work we don't use one, it's DirectAccess (no proxy).

*to install pywin32; Errorcode:
    Collecting pywin32
          Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object
        at 0x000002189212F3A0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/pywin32/
          Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object
        at 0x000002189212FE20>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/pywin32/
          Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object
        at 0x0000021892150880>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/pywin32/
          Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object
        at 0x0000021892150AC0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/pywin32/
          Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object
        at 0x00000218921507C0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/pywin32/
          Could not find a version that satisfies the requirement pywin32 (from versions: )
        No matching distribution found for pywin32

*to install pypiwin32; Errorcode:   
    Collecting pypiwin32
          Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object
        at 0x000002670BE9FFA0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/pypiwin32/
          Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object
        at 0x000002670BE9FCD0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/pypiwin32/
          Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object
        at 0x000002670BEC08B0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/pypiwin32/
          Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object
        at 0x000002670BEC0AF0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/pypiwin32/
          Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object
        at 0x000002670BEC07F0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/pypiwin32/
          Could not find a version that satisfies the requirement pypiwin32 (from versions: )
        No matching distribution found for pypiwin32
你能帮我吗? 此外,如果已经有一个主题是有益的,我会很高兴。我浪费了几个小时搜索这个网站,但是有太多

我是如何解决这个问题的: 我想为Windows任务栏编写一个带有弹出通知的代码。因此,我想使用win10toast,但pip无法安装-我检查了要求,有必要先安装pywin32和setuptools。因此,setuptools是预安装的,因此可以。 但是pywin32安装是不可能的。 如果你能给我一个比win10toast更好的解决方案,这也会很有帮助-


万分感谢!祝您一天快乐:

您可以使用plyer而不是win10toast,只需安装并编写

From plyer import notification
a= Notification.notify(title= ,message=,icon=,time=)

如果您试图在没有venv的情况下从cmd运行pip安装pywin32,那么pip安装是否有效?我如何在没有venv的情况下运行它@Flyingtellerj必须打开cmd并键入命令,假设您已将python添加到PATHYes我已经尝试了很多次…相同的错误:警告:重试Retrytotal=0,connect=None,read=None,redirect=None,连接被“NewConnectionError”断开后状态=None:无法建立新连接:[Errno 11001]getaddrinfo失败:/simple/pywin32/ERROR:无法从版本中找到满足pywin32要求的版本:无错误:未找到与pywin32I匹配的发行版我不知道…: