Re: Error with Scons SCons-4.4.0 installation on Centos7
Arnab Tah <[email protected]> Mon, 26 Dec 2022 17:44:42 +0530
| Newsgroups | gmane.comp.programming.tools.scons.user |
|---|---|
| Message-ID | <CAOUnZFC3X6ggo-v7n+1uvfvtVOPZQ=CpGsPH33bvaU6UeB-2Sg@mail.gmail.com> |
Thanks a lot Mats for your response. I'll try with the pip (python3) install as you suggested. Regards, Arnab On Fri, Dec 23, 2022 at 11:53 PM Mats Wichmann <[email protected]> wrote: > > 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. > >