def conda_env_install(module):
    print('try install: {}'.format(module))
    install_cmd = 'conda install -y {}'.format(module)
    p = subprocess.Popen(install_cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
    (stdout, stderr) = p.communicate()
    if (p.returncode != 0):
        print('try install again: {}'.format(module))
        install_cmd = 'conda install -c conda-forge -y {}'.format(module)
        p = subprocess.Popen(install_cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
        (stdout, stderr) = p.communicate()
    return p.returncode
def conda_env_install(module):
    print('try install: {}'.format(module))
    install_cmd = 'conda install -y {}'.format(module)
    p = subprocess.Popen(install_cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
    (stdout, stderr) = p.communicate()
    if (p.returncode != 0):
        print('try install again: {}'.format(module))
        install_cmd = 'conda install -c conda-forge -y {}'.format(module)
        p = subprocess.Popen(install_cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
        (stdout, stderr) = p.communicate()
    return p.returncode