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

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -