Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

python requirements file

# from same dir where the python file is located
python3 -m pipreqs.pipreqs --savepath=requirements.in

python3 -m piptools compile requirements.in

poetry init

#use this , this will read the package names and not the comments
poetry add $( cat requirements.txt| grep -v '#')

#or this
cat requirements.txt|grep -v '#'|xargs poetry add
Source by requirements-txt.readthedocs.io #
 
PREVIOUS NEXT
Tagged: #python #requirements #file
ADD COMMENT
Topic
Name
8+4 =