当我只是尝试从Windows中的命令提示符运行play命令时,我收到此错误。
C:\Users\naveenreddy>play
Traceback (most recent call last): File "E:\andrew\structure\play-1.2\play", line 13, in <module> from play.application import PlayApplication File "E:\andrew\structure\play-1.2\framework\pym\play\application.py", line 5, in <module> import socket File "C:\Python27\lib\socket.py", line 47, in <module> import _socket ImportError: DLL load failed: %1 is not a valid Win32 application.
C:\Users\naveenreddy>
我已经在路径中设置了播放目录,并且已经安装了python,我用它来运行django。什么可能导致此错误?!
答案 0 :(得分:2)
很可能与python版本冲突。尝试从你的路径中取出python,因此play可以使用内置的python。