Questions tagged [pip-compile]
5 questions
74
votes
1 answer
What does pip-compile do? What is its use? (how do I maintain the contents of my requirements.txt file?)
I am a beginner in programming and Python. I read pip-compiles definition in pip-tools documentation but I could not understand. Can someone explain me this?
More specifically, what does compiling requirements.in to produce requirements.txt mean?

nilinswap
- 1,226
- 1
- 10
- 17
4
votes
1 answer
ERROR Backend subprocess exited when trying to invoke get_requires_for_build_sdist
I was creating a Python library, I needed to compile the pyproject.toml file.
I runned this command:
pip-compile pyproject.toml --resolver=backtracking
I got:
Backend subprocess exited when trying to invoke get_requires_for_build_wheel
Failed to…

Gorzan
- 69
- 9
2
votes
1 answer
Generate aligned requirements.txt and dev-requirements.txt with pip-compile
I have a Python project that depends on two packages moduleA and moduleB. I have the following pyproject.toml:
[project]
name = "meta-motor"
version = "3.1.0.dev"
dependencies = [
"moduleA==1.0.0"
]
[project.optional-dependencies]
dev = [
…

Kins
- 547
- 1
- 5
- 22
1
vote
0 answers
How to resolve version conflict in Python?
I apologize if I made any mistake in this question. I'm working on a project in Python 3.10 where I'm using both bentoml and sidetrek (It is a python sdk that uses flytekit's latest version). But I'm facing a version conflict with protobuf.
Here's…

Taeef Najib
- 57
- 4
1
vote
1 answer
Getting "ERROR: In --require-hashes mode, all requirements must have their versions pinned with"
I want to use SHA256 hashes for installing pip packages and I have all dependencies pinned in requirements.in like…

Sujay
- 51
- 4