Re: Error with Scons SCons-4.4.0 installation on Centos7
Mats Wichmann <[email protected]> Fri, 23 Dec 2022 11:23:11 -0700
| Newsgroups | gmane.comp.programming.tools.scons.user |
|---|---|
| Message-ID | <[email protected]> |
On 12/23/22 01:54, Arnab Tah wrote: > Hello, > I am getting the following error with Scons installation on Centos 7. > Any help in this matter will be much appreciated. > > Regards, > Arnab > > [root@bmkqaclient143 SCons-4.4.0]# python setup.py install Not the recommended approach for installs. No longer have a CentOS 7 around, my memory was that's old enough that you have to do "python3" to get Python 3 - although your snip here seems to not confirm that: [root@bmkqaclient143 SCons-4.4.0]# python --version Python 3.6.8 Anyway, you can install via pip (use python3 if you need to): python -m pip install --user scons Or you can create a virtualenv and install SCons in it, something like the following (this isn't the only set of steps possible, but should be an example): https://scons-cookbook.readthedocs.io/en/latest/#setting-up-a-python-virtualenv-for-scons If you absolutely must: sudo python -m pip install scons But it's usually bad idea to force-install something into a space that's managed by the distribution's package manager (rpm in this case)... that's why the earlier form with the --user argument: that won't try to push files into /usr/lib64/python3.6 that don't "belong to" rpm.