- 论坛徽章:
- 0
|
我的也是的 gcc 装好了
我的是python3.3 pycrypto-2.6
解压了pycrypto-2.6 然后进入目录的时候运行
E:\soft\python\pycrypto-2.6>python setup.py build
running build
running build_py
running build_ext
running build_configure
'chmod' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
Traceback (most recent call last):
File "setup.py", line 456, in <module>
core.setup(**kw)
File "C:\Python33\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Python33\lib\distutils\dist.py", line 929, in run_commands
self.run_command(cmd)
File "C:\Python33\lib\distutils\dist.py", line 948, 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 948, in run_command
cmd_obj.run()
File "setup.py", line 251, 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 948, in run_command
cmd_obj.run()
File "setup.py", line 273, in run
raise RuntimeError("chmod error")
RuntimeError: chmod error
查看setup.py 的273行是: if os.system("chmod 0755 configure") != 0:
def run(self):
if not os.path.exists("config.status"):
if os.system("chmod 0755 configure") != 0:
raise RuntimeError("chmod error")
cmd = "sh configure" # we use "sh" here so that it'll work on mingw32 with standard python.org binaries
if self.verbose < 1:
cmd += " -q"
if os.system(cmd) != 0:
raise RuntimeError("autoconf error")
感觉pycrypto-2.6好像不是windows下的,
有朋友可以指点一下的吗? |
|