[Scons-users] scons installation on Ubuntu 17.10
Mark Diekhans
markd at kermodei.com
Mon Apr 23 22:37:48 EDT 2018
I am trying to install scons on a fairly clean Ubuntu machine.
pip install SCons
installs it in:
/usr/local/lib/python2.7/dist-packages/scons-3.0.1/SCons/
Note that it is using dist-packages not site=packages,
apparently a debian thing.
running scons fails to find the package as sys.path has become rather
managed:
% scons
SCons import failed. Unable to find engine files in:
/usr/local/bin/../engine
/usr/local/bin/scons-local-3.0.1
/usr/local/bin/scons-local
/usr/local/lib/python2.7/dist-packages/lib/scons-3.0.1
/usr/local/lib/scons-3.0.1
/usr/lib/scons-3.0.1
/usr/local/lib/scons-3.0.1
/usr/local/lib/python2.7/dist-packages/lib/python2.7/site-packages/scons-3.0.1
/usr/local/lib/python2.7/site-packages/scons-3.0.1
/usr/lib/python2.7/site-packages/scons-3.0.1
/usr/local/lib/python2.7/site-packages/scons-3.0.1
/usr/lib/scons-3.0.1
/usr/local/lib/python2.7/dist-packages/lib/scons
/usr/local/lib/scons
/usr/lib/scons
/usr/local/lib/scons
/usr/local/lib/python2.7/dist-packages/lib/python2.7/site-packages/scons
/usr/local/lib/python2.7/site-packages/scons
/usr/lib/python2.7/site-packages/scons
/usr/local/lib/python2.7/site-packages/scons
/usr/lib/scons
Traceback (most recent call last):
File "/usr/local/bin/scons", line 192, in <module>
import SCons.Script
ImportError: No module named SCons.Script
It works fine if install in a virtualenv
Sorry, do have time to debug right now, but will glad test proposed fixes.
Mark
More information about the Scons-users
mailing list