import pip


def install(package):
    if hasattr(pip, 'main'):
        pip.main(['install', package])
    else:
        pip._internal.main(['install', package])


# Example
if __name__ == '__main__':
    install('requests')
    install('collections')
    install('beautifulsoup4')
    install('nltk')

5d4e1899ca8236348b34cf693fa9b4c32a21c0e1
<mask token>

<mask token>


def install(package):
    if hasattr(pip, 'main'):
        pip.main(['install', package])
    else:
        pip._internal.main(['install', package])


<mask token>

<mask token>


def install(package):
    if hasattr(pip, 'main'):
        pip.main(['install', package])
    else:
        pip._internal.main(['install', package])


if __name__ == '__main__':
    install('requests')
    install('collections')
    install('beautifulsoup4')
    install('nltk')

import pip


def install(package):
    if hasattr(pip, 'main'):
        pip.main(['install', package])
    else:
        pip._internal.main(['install', package])


if __name__ == '__main__':
    install('requests')
    install('collections')
    install('beautifulsoup4')
    install('nltk')

import pip


def install(package):
    if hasattr(pip, 'main'):
        pip.main(['install', package])
    else:
        pip._internal.main(['install', package])


# Example
if __name__ == '__main__':
    install('requests')
    install('collections')
    install('beautifulsoup4')
    install('nltk')
