如何在 CMD 中使用 PIP 安装 Pywin32?我收到一个错误

How can I install Pywin32 with PIP in CMD? I am getting an error

我有 python 3.7.3 windows 10 64 位在 CMD 中使用 pip

我正在尝试使用 pip 安装 Pywin32,但出现错误:

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', FileNotFoundError(2, 'No such file or directory'))': /simple/pypiwin32/

WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', FileNotFoundError(2, 'No such file or directory'))': /simple/pypiwin32/

WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', FileNotFoundError(2, 'No such file or directory'))': /simple/pypiwin32/

WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', FileNotFoundError(2, 'No such file or directory'))': /simple/pypiwin32/

WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', FileNotFoundError(2, 'No such file or directory'))': /simple/pypiwin32/

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

ERROR: No matching distribution found for pypiwin32==303

我尝试过的:

pip install --trusted-host=pypi.org --trusted-host=files.pythonhosted.org --user pypiwin32
pip install --trusted-host=pypi.org --trusted-host=files.pythonhosted.org --user pywin32
pip install pypiwin32
pip install pywin32
pip install --trusted-host=pypi.org --trusted-host=files.pythonhosted.org --user pypiwin32>=223
pip install --trusted-host=pypi.org --trusted-host=files.pythonhosted.org --user pypiwin32==303

还尝试在代理设置中关闭使用代理服务器

有什么建议吗?

没弄清楚,但我只是将 .whl 文件和 CD 下载到我下载它的文件夹,并使用 pip install pywin32-303-cp37-cp37m-win_amd64.whl 并且成功了