Quantcast
Channel: Install a package and write to requirements.txt with pip - Stack Overflow
Viewing all articles
Browse latest Browse all 4

Answer by MechanisM for Install a package and write to requirements.txt with pip

$
0
0

Just add smth like

function pips() {    echo $'\n'$1 >> requirements.txt; pip install $1}

into your .bashrc or .bash_profile and use pips command to install package and save it's name into requirements.txtexample:

pips django-waffle

based on Akash Kothawale comment :)


Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>