windows - How to check python version using C++? -


i want use c ++ confirm local windows system python version installed, not know how determine?

if python directory has been added path environment variable, can _popen python --version argument, , parse out version number standard output (which e.g. python 2.7.6).

another option use regedit see if version appears somewhere in registry can read from. lots of existing s.o. q&a on how read registry values....

if stuck implementing either option, post code , specific problem.


Comments

Popular posts from this blog

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -