cmd python 找不到指定的模块_Python 3.3.4 Cx_Freeze ImportError:DDL load failed:找不到指定的模块...

I am attempting to use cx_Freeze to turn a .py file that I wrote in Python 3.3.4. In running the build command, I get the following error.

C:\Python33>c:\python33\python.exe setup.py build

running build

running build_exe

Traceback (most recent call last):

File "setup.py", line 22, in

executables=executables

File "c:\python33\lib\site-packages\cx_Freeze\dist.py", line 365, in setup

distutils.core.setup(**attrs)

File "c:\python33\lib\distutils\core.py", line 148, in setup

dist.run_commands()

File "c:\python33\lib\distutils\dist.py", line 930, in run_commands

self.run_command(cmd)

File "c:\python33\lib\distutils\dist.py", line 949, in run_command

cmd_obj.run()

File "c:\python33\lib\distutils\command\build.py", line 126, in run

self.run_command(cmd_name)

File "c:\python33\lib\distutils\cmd.py", line 313, in run_command

self.distribution.run_command(command)

File "c:\python33\lib\distutils\dist.py", line 949, in run_command

cmd_obj.run()

File "c:\python33\lib\site-packages\cx_Freeze\dist.py", line 234, in run

metadata = metadata)

File "c:\python33\lib\site-packages\cx_Freeze\freezer.py", line 101, in __init

__

for n in self._GetDefaultBinPathExcludes() + binPathExcludes]

File "c:\python33\lib\site-packages\cx_Freeze\freezer.py", line 235, in _GetDe

faultBinPathExcludes

import cx_Freeze.util

ImportError: DLL load failed: The specified module could not be found.

Have I not installed cx_freeze correctly? Or am I running it all wrong?

Help is greatly appreciated.

Thanks

解决方案

Well, I found an answer that works for me.

Turns out there's a bug in cx_Freeze 4.3.4 and downgrading to 4.3.3 solved this problem for me.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值