import sys from distutils.sysconfig import get_python_lib print(get_python_lib(prefix=sys.argv[1]))