Pipenv lock still takes way too long to complete
See original GitHub issuepipenv lock is still taking up to 30 minutes to complete for my medium-sized project.
While #4403 was closed as fixed and indeed no full tree copies are made any more, pipenv lock is still unworkably slow. What used to take 50 seconds under 2018.11.26, now takes 30 minutes to figure out that nothing changed:
$ export PIPENV_INSTALL_TIMEOUT=10000
$ cp Pipfile.lock Pipfile.lock.before
$ time pipenv lock
Locking [dev-packages] dependencies…
Building requirements...
Resolving dependencies...
✔ Success!
Locking [packages] dependencies…
Building requirements...
Resolving dependencies...
✔ Success!
Updated Pipfile.lock (0e1198)!
real 29m19.701s
user 28m39.300s
sys 4m8.222s
$ diff -su Pipfile.lock.old Pipfile.lock
Files Pipfile.lock.old and Pipfile.lock are identical
This is making it untenable to keep using Pipenv.
Full pipenv lock -v output in a gist.
Pipfile:
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
flake8 = "*"
flake8-bugbear = "*"
black = "==19.10b0"
pre-commit = "*"
pytest = "*"
pytest-cov = "*"
[packages]
project-name = {editable = true,path = "."}
"zc.buildout" = "*"
[requires]
python_version = "3.6"
where project-name (redacted name) lists the following install-requires lines:
install_requires =
apache-airflow[aws,celery,postgres,redis] >= 1.10.11
airflow_multi_dagrun
airflow-prometheus-exporter
$ pipenv --support
Pipenv version: '2020.8.13'
Pipenv location: '/usr/local/Cellar/pipenv/2020.8.13/libexec/lib/python3.8/site-packages/pipenv'
Python location: '/usr/local/Cellar/pipenv/2020.8.13/libexec/bin/python3.8'
Python installations found:
3.9.0:/Users/mj/bin/python3.93.8.5:/usr/local/bin/python33.8.5:/usr/local/bin/python3.83.8.3:/Users/mj/bin/python3.83.7.7:/Users/mj/bin/python3.73.7.6:/opt/miniconda3/bin/python33.7.6:/opt/miniconda3/bin/python3.7m3.7.6:/opt/miniconda3/bin/python3.73.7.3:/Users/mj/.pyenv/versions/3.7.3/bin/python33.6.10:/Users/mj/bin/python3.63.6.1:/Users/mj/bin/pypy33.5.9:/Users/mj/bin/python3.53.4.10:/Users/mj/bin/python3.43.3.7:/Users/mj/bin/python3.33.2.6:/Users/mj/bin/python3.22.7.18:/Users/mj/bin/python2.72.7.16:/usr/bin/python2.72.6.9:/Users/mj/bin/python2.62.5.6:/Users/mj/bin/python2.52.4.6:/Users/mj/bin/python2.4
PEP 508 Information:
{'implementation_name': 'cpython',
'implementation_version': '3.8.5',
'os_name': 'posix',
'platform_machine': 'x86_64',
'platform_python_implementation': 'CPython',
'platform_release': '17.7.0',
'platform_system': 'Darwin',
'platform_version': 'Darwin Kernel Version 17.7.0: Wed May 27 17:00:02 PDT '
'2020; root:xnu-4570.71.80.1~1/RELEASE_X86_64',
'python_full_version': '3.8.5',
'python_version': '3.8',
'sys_platform': 'darwin'}
System environment variables:
PATHAUTOJUMP_ERROR_PATHNVM_INCTERM_PROGRAMGIT_PROMPT_ENDrvm_bin_pathAUTOJUMP_SOURCEDGEM_HOMENVM_CD_FLAGSSHELLTERMHISTSIZETMPDIRCOPYFILE_DISABLEIRBRCApple_PubSub_Socket_RenderCONDA_SHLVLPERL5LIBTERM_PROGRAM_VERSIONCONDA_PROMPT_MODIFIERTERM_SESSION_IDMY_RUBY_HOMEPERL_MB_OPTLC_ALLUSERHISTFILESIZENVM_DIRCOMMAND_MODECONDA_EXErvm_pathSSH_AUTH_SOCK__CF_USER_TEXT_ENCODINGPTPIMG_API_KEY_CE_CONDArvm_prefix_CONDA_PREFIXPWDHOMEBREW_GITHUB_API_TOKENEDITORLANGITERM_PROFILEPYTHONSTARTUPXPC_FLAGSITERM_ORIG_PS1XPC_SERVICE_NAMEHISTCONTROL_CE_MFIGNORErvm_versionCOLORFGBGHOMESHLVLLC_TERMINAL_VERSIONITERM_PREV_PS1ITERM_SESSION_IDPERL_LOCAL_LIB_ROOTLOGNAMECONDA_PYTHON_EXELC_CTYPEGEM_PATHGIT_PROMPT_ONLY_IN_REPOCONDA_DEFAULT_ENVNVM_BINDISPLAYLC_TERMINALHGSRCSECURITYSESSIONIDRUBY_VERSIONPERL_MM_OPTCOLORTERMPIP_DISABLE_PIP_VERSION_CHECKPYTHONDONTWRITEBYTECODEPIP_SHIMS_BASE_MODULEPIP_PYTHON_PATHPYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH:/usr/local/Cellar/pipenv/2020.8.13/libexec/tools:/usr/local/google-sdks/google-cloud-sdk/bin:/Users/mj/perl5/bin:/Users/mj/.nvm/versions/node/v12.14.1/bin:/Users/mj/.rvm/gems/ruby-2.3.0/bin:/Users/mj/.rvm/gems/ruby-2.3.0@global/bin:/Users/mj/.rvm/rubies/ruby-2.3.0/bin:/opt/miniconda3/bin:/opt/miniconda3/condabin:/Users/mj/bin:/Users/mj/Development/Library/zopatista_setup/bin:/Users/mj/Development/Library/zopatista_setup/audio:/usr/local/Cellar/ruby/2.7.1_2/bin:/Users/mj/.cargo/bin:/Users/mj/.poetry/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/usr/local/MacGPG2/bin:/usr/local/sbin:/opt/X11/bin:/Applications/Postgres.app/Contents/Versions/latest/bin:/Users/mj/.local/bin:/Users/mj/.rvm/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/binSHELL:/bin/bashEDITOR:vimLANG:en_GB.UTF-8PWD:/Users/mj
Issue Analytics
- State:
- Created 3 years ago
- Reactions:57
- Comments:64 (3 by maintainers)

Top Related StackOverflow Question
Why pipenv why so slow? Why?
just move to poetry - faster locks overall better performance