def pip_env_install(module):
    print('try install: {}'.format(module))
    install_cmd = 'pip install {}'.format(module)
    p = subprocess.Popen(install_cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
    (stdout, stderr) = p.communicate()
    return p.returncode
def pip_env_install(module):
    print('try install: {}'.format(module))
    install_cmd = 'pip install {}'.format(module)
    p = subprocess.Popen(install_cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
    (stdout, stderr) = p.communicate()
    return p.returncode