0
我试过从源代码构建忍者。我所做的:subprocess.py错误:忍者不是从Windows 8上的源码构建的
$ git clone git://github.com/martine/ninja.git && cd ninja
$ git checkout release
然后在Visual Studio命令行我跑configure.py
与Python:
$ C:\Python27\python.exe configure.py --bootstrap
但在这里我得到以下错误:
C:\ninja>C:\Python27\python.exe configure.py --bootstrap
bootstrapping ninja...
Traceback (most recent call last):
File "configure.py", line 320, in <module>
if platform.msvc_needs_fs():
File "configure.py", line 84, in msvc_needs_fs
stderr=subprocess.PIPE)
File "C:\Python27\Lib\subprocess.py", line 390, in __init__
errread, errwrite)
File "C:\Python27\Lib\subprocess.py", line 640, in _execute_chi
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
阅读this的答案后,我向configure.py
中的所有call()
和check_call()
添加了shell=True
。但是这仍然没有帮助。
任何想法该怎么办?
只要在命令行上运行'cl'不起作用,尽管我安装了Microsoft Visual C++。 –
所以这可能意味着它不在PATH上。请参阅https://msdn.microsoft.com/en-us/library/f2ccy3wt.aspx :) – AKX
我搜索了我的整个C:\驱动器,但无法找到Microsoft Visual C++的路径。但是,我确实在安装的应用程序列表中(在控制面板中的程序和功能部件中)看到它。 –