pipenv
is slow. Use uv
for lightning fast dependency management.
#1955
anunayasri
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using
pipenv
for dependency management for too slow on my laptop. The first install(and even subsequent installs) of dependencies takes several minutes 😢To resolve this I have generated a hack to use
pdm
anduv
for dependency management.If you have the same problem, read along 🙂
We have a
Pipfile
which is not supported out of box byuv
. We will use pdm to generate apyproject.toml
file with project dependencies. We will then use the newly createdpyproject.toml
to dependency installation usinguv
. Thepyproject.toml
file present in the repo does not have project dependencies, but have project metadata adn configurations for tools like ruff.# backup pyproject.toml mv pyproject.toml pyproject.toml.orig
Install
pdm
: https://pdm-project.org/latest/Install
uv
: https://docs.astral.sh/uv/getting-started/installation/uv
has a different way thanpdm
to specify dev dependencies. Change the following linesto
Restore the original
pyproject.toml
fileTODO
Beta Was this translation helpful? Give feedback.
All reactions