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.
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:
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With