Paul
Paul

Reputation: 982

How to make requirements file with `pip` that lists package as '>='

I would like to create a requirements.txt that list packages as >= obviously pip freeze does not do this.

The pip documentation suggests that this is not possible since there are no list or freeze options that enables different versioning specification.

Is there an easy way to affect different versioning for packages in the requirements file or is it going to be a manual task?

Upvotes: 0

Views: 162

Answers (1)

Joran Beasley
Joran Beasley

Reputation: 113988

python -c "print(subprocess.check_output('pip freeze').replace('==','>='))"

... i guess

Upvotes: 1

Related Questions