如何在 Windows 7 中安装 pywin32 模块

2023-07-04Python开发问题
12

本文介绍了如何在 Windows 7 中安装 pywin32 模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我正在尝试安装 pywin32.我是从 sourceforge.net 下载的.当我跑步时

I am trying to install pywin32. I downloaded it from sourceforge.net. When I run

setup.py install

它显示无法找到 vcvarsall.bat".我用谷歌搜索了一下,发现我必须安装 MinGW 并设置路径然后运行

it shows "Unable to find vcvarsall.bat". I Googled about it and found that I have to install MinGW and set path then run

python setup.py build --compiler=mingw32

但它正在显示

Can't find a version in Windows.h

有人可以帮忙吗?(我安装了 Visual Studio 2010 Ultimate 的试用版并安装了 MinGW C 和 C++ 编译器.操作系统:Windows 7.)

Can anybody help? (I have a trial version of Visual Studio 2010 Ultimate installed and MinGW C and C++ compiler installed. Operating system: Windows 7.)

谁能告诉我一个来源,我可以从哪里下载已经在 MinGW 中编译的 Python 二进制文件,所以我不必做所有这些.或者如果我能得到一个已经有 Windows 模块的 python.

Can anybody tell me a source from where I can download Python binaries already compiled in MinGW, so I don't have to do all this. Or if I can get a python which already have Windows modules.

推荐答案

你只是想安装它,还是想从源代码构建?

are you just trying to install it, or are you looking to build from source?

如果您只需要安装,最简单的方法是使用此处提供的 MSI 安装程序:

If you just need to install, the easiest way is to use the MSI installers provided here:

http://sourceforge.net/projects/pywin32/files/pywin32/(对于更新版本)

确保您获得正确的版本(匹配 Python 版本、32 位/64 位等)

make sure you get the correct version (matches Python version, 32bit/64bit, etc)

这篇关于如何在 Windows 7 中安装 pywin32 模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

在xarray中按单个维度的多个坐标分组
groupby multiple coords along a single dimension in xarray(在xarray中按单个维度的多个坐标分组)...
2024-08-22 Python开发问题
15

Pandas中的GROUP BY AND SUM不丢失列
Group by and Sum in Pandas without losing columns(Pandas中的GROUP BY AND SUM不丢失列)...
2024-08-22 Python开发问题
17

pandas 有从特定日期开始的按月分组的方式吗?
Is there a way of group by month in Pandas starting at specific day number?( pandas 有从特定日期开始的按月分组的方式吗?)...
2024-08-22 Python开发问题
10

GROUP BY+新列+基于条件的前一行抓取值
Group by + New Column + Grab value former row based on conditionals(GROUP BY+新列+基于条件的前一行抓取值)...
2024-08-22 Python开发问题
18

PANDA中的Groupby算法和插值算法
Groupby and interpolate in Pandas(PANDA中的Groupby算法和插值算法)...
2024-08-22 Python开发问题
11

PANAS-基于列对行进行分组,并将NaN替换为非空值
Pandas - Group Rows based on a column and replace NaN with non-null values(PANAS-基于列对行进行分组,并将NaN替换为非空值)...
2024-08-22 Python开发问题
10