No module named SCons.Script‏

I have been trying to get SCons working now for quite a time, but didn't succeed yet. Before everything else: I'm running Windows 7 x64.

I have firstly installed Python 2.7.11 in C:SoftwarePython27 and added both that directory as C:SoftwarePythonScripts to the system path (for all users, that is). Then I installed SCons in C:SoftwarePython27Libsite-packagesscons-2.4.1 , and the scripts in the previous mentioned scripts-directory (the directories which the SCons installation msi defaults to).

And now when I try to run SCons I get this error message:

Import failed. Unable to find SCons files in:

...

ImportError: No module named SCons.Script

导入失败。无法在中找到SCons文件

As a user I really don't have any idea where the error comes from, other than that SCons can't resolve it's own imports.

I got it working by creating though by creating a new folder: C:SoftwarePython27Scriptsscons-local and moving the contents of the SCons installation folder ( ...Python27Libsite-packagesscons-2.4.1 ) to the newly created folder. But this gives me a syntax error:

SyntaxError:语法无效

I found here that this error is due to my Python version not supporting conditional expressions, because this kind of expressions are supported from Python 2.4 and higher. The thing is though that I am using Python 2.7.11, and thus I shouldn't get this error.

Some help would be highly appreciated, thanks in advance!

链接地址: http://www.djcxy.com/p/78084.html

上一篇: 替代符号链接

下一篇: 没有名为SCons.Script的模块