Yes. There is. I have been in need of this for a while until I found out. 2
- pip install pip-chill
The list will only have what you directly installed and will not list
itself, which is pretty neat. The only thing you'll notice is that it's not
On Sat, Aug 5, 2017, 05:57 Ethan Furman <et...@stoneleaf.us> wrote:
> On 08/04/2017 07:46 PM, Chris Angelico wrote:
> > On Sat, Aug 5, 2017 at 12:42 PM, Ethan Furman wrote:
> >> pip freeze
> >> will output a list of current packages and their requirements. I have
> >> package that falsely  lists another package as a requirement, which
> >> blocking installation as the false requirement wasn't available.
> >> Is there a way to modify that output (which would be piped to, for
> >> requirements.txt) to have
> >> pip install -r requirements.txt
> >> so pip ignores that one (and only that one) dependency?
> > I'd just edit the file afterwards and delete the line. But if the
> > package claims to need PyXML, it'll still be installed.
> Exactly my point. Is there any way, requirements.txt or otherwise, to
> tell pip to ignore what a certain package is
> claiming it needs?
> I am aware of --no-dependencies, but that (I think) is an all-or-nothing
> approach, whilst  I desire an all-except-one
>  I blame words like 'whilst' on my new Paperback game by Tim Fowler.
> The Smarter-AI uses words from Middle-English
> (!) and spellings not seen for at least 300 years! But hey, my vocabulary
> is (uselessly) expanding!