Python - handle package dependencies with requirements.txt 2018.03.18 To create same environment in python, you must know requirements.txt, it includes packages dependencies and let you install by a single command, a requirements.txt looks like this :123beautifulsoup4==4.6.0certifi==2018.1.18chardet==3.0.4 To generate requirements.txt123456# Without using virtual environmentpip install pipreqspipreqs /path/to/project# With virtual environmentpip freeze > requirements.txt Install packages from requirements.txt :1pip install -r requirements.txt pip install bypass SSL certificate :1234pip install --trusted-host pypi.python.org <package_name># Combine with requirements.txtpip install --trusted-host pypi.python.org -r requirements.txt Referencehttps://github.com/bndr/pipreqspip install --help is your friend.