Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running Scons 2.2.0 on Windows 7 cmd

Tags:

windows

cmd

scons

I installed SCons 2.2.0 in Python 2.7 on Windows 7. When a run "scons" from cmd i get the error message "scons is not recognized and an internal or external command" How can i solve this?


The problem is scons-2.2.0-setup.exe does not setup path in the system. The scons.bat and scons-2.2.0.bat are both found in "C:/Python27/Scripts" folder. Setting this to path does solve the problem. Now a new problem arises when trying a compile a simple C++ file with message "cl" is not recognized as internal or external command. (Windows 7 64 bit). Please any ideas may be helpful.

like image 896
Amani Avatar asked Feb 16 '13 18:02

Amani


2 Answers

Did you install it using the SCons windows installer? It should set everything up for you.

According to the SCons installation instructions, SCons should be installed here:

  • C:\Python25\Scripts
  • C:\Python25\scons

In your case, replace c:\Python25 with the location of your pythong 2.7 installation.

Additionally, make sure the SCons python script is in your path. You may have to restart the cmd for the changes to path to take affect.

like image 117
Brady Avatar answered Nov 07 '22 03:11

Brady


To use cl you need to use the Visual Studio command line and then run scons from there, its a .bat file and the scripts folder in your Python installation. Putting scripts in your path should resolve it as I recently did this myself.

like image 44
David Tr Avatar answered Nov 07 '22 03:11

David Tr