pywin32-217 安装异常解决 No files match 'pythonwin\pywin\*.cfg

> Hi All,> 
> I am trying to install pywin32-217 for the first time on my Windows 7 64
> bit machine. I have following installed on my machine,> 
> Python 2.7.3> MS Windows SDK for Windows 7 (7.1)
> Downloaded pywin32-217 from sourceforge> > 
> When I run the setup.py as below
 > c:\pywin32-217\python setup.py install> 
> I am getting following error> 
> Building pywin32 2.7.217.0
> Traceback (most recent call last):
>   File "setup.py", line 2428, in <module>
>     ] +>   File "setup.py", line 2224, in convert_data_files
>     raise RuntimeError("No files match '%s'" % file)> RuntimeError: No files match 'pythonwin\pywin\*.cfg'> 
> There are two .cfg files (default.cfg and IDLE.cfg) under pythonwin\pywin\. > 
> Please help how to get rid of this error and continue with installation.

Do you have / want to build from source? If not, download one
of the binaries from Sourceforge and use that. If you do need
to build from source, you'll have to patch the setup.py in
the pywin32 sourceball to add a parameter anchor=0 to the calls
to include_pattern and exclude_pattern within the convert_data_files
function.

(I was just about to get in touch with Mark H and offer a patch but
I won't have time to do the mechanics until this afternoon at the
earliest...)

FWIW this is due to a recent-ish change to distutils which fixed a
longstanding bugette. The effect was to tighten up the action of
include|exclude_pattern calls so that they don't match against
directory strings unless anchor is set to 0.

Again, though, unless you *want* to build from source, you can just
download a binary build.


TJG

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值