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
Uh oh!
There was an error while loading. Please reload this page.
-
Using
pipenvfor 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
pdmanduvfor dependency management.If you have the same problem, read along 🙂
We have a
Pipfilewhich is not supported out of box byuv. We will use pdm to generate apyproject.tomlfile with project dependencies. We will then use the newly createdpyproject.tomlto dependency installation usinguv. Thepyproject.tomlfile 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.origInstall
pdm: https://pdm-project.org/latest/Install
uv: https://docs.astral.sh/uv/getting-started/installation/uvhas a different way thanpdmto specify dev dependencies. Change the following linesto
Restore the original
pyproject.tomlfileTODO
Beta Was this translation helpful? Give feedback.
All reactions