我不知道这是不是一个简单的问题。我正在尝试从 http://sourceforge.net/projects/pywin32/files/pywin32/Build%20218/ 安装 pywin32
但是,我运行的是 3.3.3,当安装开始时,它告诉我在注册表中未找到版本 3.3。
我在 google 上搜索了一些解决方法,但大多数都针对类似问题的 2.x 版本。有什么建议么?
谢谢!!
最佳答案
尝试下载不同的安装程序。确保它与您正在使用的 Python 匹配。它必须匹配 Python 版本(例如 2.7、3.3)并匹配 32 位或 64 位。
在命令提示符下输入 python
python
Python 解释器启动并告诉您有关其自身的信息。
Python 3.4.0 (v3.4.0:04f714765c13, Mar 16 2014, 19:24:06) [MSC v.1600 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
查看解释器启动时打印的第一行。在此示例中,它告诉您它是 Python 3.4,32 位。因此,为该设置下载的文件将是 pywin32-219.win32-py3.4.exe 。这将为您提供 pywin32 的 219 版本,这是撰写本文时(2014 年 7 月)的最新版本
来自自述文件
Some packages have a 32bit and a 64bit version available - you must download the one which corresponds to the Python you have installed. Even if you have a 64bit computer, if you installed a 32bit version of Python you must install the 32bit version of pywin32.
If the installation process informs you that Python is not found in the registry, it almost certainly means you have downloaded the wrong version - either for the wrong version of Python, or the wrong "bittedness".
关于python-3.x - 在 python 3.3.3 中安装 pywin32,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22776321/