Skip to content

pipenv not consistant from local to server

Im using pipenv to manage my dependencies, I have the following command working fine on my local machine:

pipenv install --dev

but when I run it on the server I get the following error:

n error occurred while installing pyparsing==2.4.1 --hash=sha256:530d8bf8cc93a34019d08142593cf4d78a05c890da8cf87ffa3120af53772238 --hash=sha256:f78e99616b6f1a4745c0580e170251ef1bbafc0d0513e270c4bd281bf29d2800 --hash=sha256:530d8bf8cc93a34019d08142593cf4d78a05c890da8cf87ffa3120af53772238 --hash=sha256:f78e99616b6f1a4745c0580e170251ef1bbafc0d0513e270c4bd281bf29d2800! Will try again.
  ðŸ   ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 237/237 — 00:00:30
Installing initially failed dependencies…
[pipenv.exceptions.InstallError]:   File "/home/ubuntu/.local/lib/python3.6/site-packages/pipenv/", line 1874, in do_install
[pipenv.exceptions.InstallError]:       keep_outdated=keep_outdated
[pipenv.exceptions.InstallError]:   File "/home/ubuntu/.local/lib/python3.6/site-packages/pipenv/", line 1253, in do_init
[pipenv.exceptions.InstallError]:       pypi_mirror=pypi_mirror,
[pipenv.exceptions.InstallError]:   File "/home/ubuntu/.local/lib/python3.6/site-packages/pipenv/", line 859, in do_install_dependencies
[pipenv.exceptions.InstallError]:       retry_list, procs, failed_deps_queue, requirements_dir, **install_kwargs
[pipenv.exceptions.InstallError]:   File "/home/ubuntu/.local/lib/python3.6/site-packages/pipenv/", line 763, in batch_install
[pipenv.exceptions.InstallError]:       _cleanup_procs(procs, not blocking, failed_deps_queue, retry=retry)
[pipenv.exceptions.InstallError]:   File "/home/ubuntu/.local/lib/python3.6/site-packages/pipenv/", line 681, in _cleanup_procs
[pipenv.exceptions.InstallError]:       raise exceptions.InstallError(, extra=err_lines)
[pipenv.exceptions.InstallError]: ['Collecting pyparsing==2.4.1 (from -r /tmp/pipenv-nfz65sbh-requirements/pipenv-11553m_x-requirement.txt (line 1))']
[pipenv.exceptions.InstallError]: ['ERROR: Could not find a version that satisfies the requirement pyparsing==2.4.1 (from -r /tmp/pipenv-nfz65sbh-requirements/pipenv-11553m_x-requirement.txt (line 1)) (from versions: 1.4.6, 1.4.7, 1.4.8, 1.4.11, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 1.5.4, 1.5.5, 1.5.6, 1.5.7, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6, 2.0.7, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.1.5, 2.1.6, 2.1.7, 2.1.8, 2.1.9, 2.1.10, 2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.3.1, 2.4.0,, 2.4.2a1)', 'ERROR: No matching distribution found for pyparsing==2.4.1 (from -r /tmp/pipenv-nfz65sbh-requirements/pipenv-11553m_x-requirement.txt (line 1))']

I have handled pipenv errors before and most were pretty reasonable (clashes between dependency and sub-dependecies), but this one makes less sense to me as I did not specifically installed this package, but rather pipenv added it to the pipfile.lock and it doesnt find that version all together while locally that version is available for some reason.

I dont know which dependency is asking for that specific version either.

Pipfile.lock section:

"pyparsing": {
            "hashes": [
            "version": "==2.4.1"

Any ideas?

EDIT: you can see in the releases for pyparsing that this version does exist. See it here


Turns out that pyparsing have deleted a version, which is really weird.

I ended up updating a package (scipy) and it update pyparsing to, now works fine