create requirements.txt python
pip list --format=freeze > requirements.txt
create requirements.txt python
pip list --format=freeze > requirements.txt
requirements file generate django
pip3 freeze > requirements.txt # Python3
pip freeze > requirements.txt # Python2
python create requirements.txt
import subprocess
result = subprocess.run(["pip", "freeze"], capture_output=True, text=True, shell=True)
with open('requirements.txt', 'w') as d:
for line in result.stdout.split('\n'):
d.write(line.split('==')[0]+'\n')
# ".split('==')[0]" seperates name from version
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us