python-3.x - 在 python 3.3.3 中安装 pywin32

标签 python-3.x pywin32

我不知道这是不是一个简单的问题。我正在尝试从 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/

相关文章:

python - 从 subprocess.run 运行带有 "./"的二进制文件

python - 有什么更好的方法可以在 Python 中从 Active Directory 域获取用户/组信息?

Python、WMI、注册表和奇怪的结果

python - 如何将大列表拆分成行?

python - 使用 Pandas 计算一组计数的情况

python - 如何将数学运算应用于 python 列表中的每个数字?

python - 安装和运行 pywin32 2.7 时出错

python - 如何使用 pywin32/pypiwin32 发出 HTTP POST 请求?

python - 使用pywinauto查找窗口需要很长时间

mongodb - 如何在mongoDB与python集成中编写原子操作