1

I am newbie at Python and am learning to code with Python 3 (which I plan to keep as my default version). Another software, I intend to use needs Python 2 for compiling (compilation with SCons). Is there a way around this i.e. keeping Python 3 while still compiling with SCons. Can virtualenv do this?

2
  • 1
    Not informed about the current state of affairs with SCons, but generally something written for python 3.x cannot be expected to run on 2.x and vice versa. I would propose installing multiple python versions in parallel to cover the different version requirements. Commented May 21, 2017 at 11:33
  • Are you asking if you can install both versions on your system? Or do you want to build something with SCons which requires Python3? Or something else? Commented May 22, 2017 at 0:40

1 Answer 1

1

the fact that scons is python2 doesn't matter. Your own project can be python3, python4, or anything your heart desires. Scons doesn't care, you just need to remember that you're in python2 land when you're editing your SConstruct files

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.