Jun-16-2022, 05:29 AM
(This post was last modified: Jun-16-2022, 05:29 AM by Gribouillis.)
(Jun-16-2022, 03:47 AM)pnachtwey Wrote: I will need to have an easy way of excluding the problem packagesIf you mean in the pip command line, you could replace it by something like
from pathlib import Path import subprocess as sp import sys with Path('req0.txt').open('w') as ofile: sp.run([ sys.executable, '-m', 'pip', 'list', '--outdated', '--exclude', 'idna', '--exclude', 'mistune', '--exclude', 'tomli', '--format=freeze', '--user'], stdout=ofile)