既然pywin32可以在pip中使用,那么从pip中较早版本(安装了本机MSI)升级到最新和最好的pip版本的平滑路径是什么?在
我的PIP不会卸载旧版本,如下所述。在
======= C:\Users\bobhy
> pip list
Package Version
--------------- -------
. . .
pip 10.0.1
pywin32 221
. . .
======= C:\Users\bobhy
> pip install pywin32==223
Collecting pywin32==223
Using cached https://files.pythonhosted.org/packages/9f/9d/f4b2170e8ff5d825cd4398856fee88f6c70c60bce0aa8411ed17c1e1b21f/pywin32-223-cp36-cp36m-win_amd64.whl
Installing collected packages: pywin32
Found existing installation: pywin32 221
Cannot uninstall 'pywin32'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
解决方案是通过
Control Panel > Uninstall or Change Program
卸载MSI安装。之后,您可以通过pip
进行安装。在我有一个类似的问题:
pywin32
来自ActivePython,我试图(失败地)从pip
安装另一个模块(win10toast,该模块依赖于pywin32
。在安装也有同样的问题。在
解决方案是添加
ignore-installed
:干杯
相关问题 更多 >
编程相关推荐