create requirements.txt python
pip list --format=freeze > requirements.txt
create requirements.txt python
pip list --format=freeze > requirements.txt
command to make requirements.txt
pip freeze > requirements.txt
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