我已经安装了python 3.8,需要安装pywin(pywin32)
但是,点子找不到它。注意,我之前尝试过使用pip install命令在终端中安装一些其他软件包,但它们也不起作用。
一些可能相关的数据点:
新安装的python 3.8.1
windows 10 x64
python 3.7先前已安装在计算机上
我正在使用pycharm 2019.3.3。在venv / Lib / site-packages中显示安装了setuptools和pip。
我在pycharm中使用终端,因为它是让我进入路径系统C的唯一控制台:---> Windows的常规cmd始终位于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更好的解决方案,这也将有所帮助;-)
一百万个谢谢!祝您开心:)
答案 0 :(得分:-1)
您可以使用plyer代替win10toast,只需安装并编写
From plyer import notification
a= Notification.notify(title= ,message=,icon=,time=)