back

by AdamN·9y ago·view on hn ↗
We use Ansible (system 2.7) but our code is written in 3.5. I'm not sure what you're talking about since never the twain shall meet. It's BAD to use the system Python for any of your internal production code (use a virtualenv!).
1 comments
I do use venv, I have one for each version of ansible. 1.x, 2.x and dev.

But what do you mean when you say your system uses 3.5? Yes of course the system python can be 3, or 2 simultaneously but ansible still requires python 2 to run.

And I haven't tried this but I'd assume lib ansible can't be used by python 3. Maybe you can confirm.