0

Since a few hours I had issues with installing dependencies via pipenv. I decided to recreate my environment again and start from scratch, using a different python version (3.8.9). I'm now unable to even install any packages at all, and retrieve the following traceback:

  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pipenv/vendor/requirementslib/models/requirements.py", line 18, in <module>
    from pip_shims.shims import (
ImportError: cannot import name 'InstallRequirement' from 'pip_shims.shims' (unknown location)

Any ideas how to resolve this?

pymat
  • 1,090
  • 1
  • 23
  • 45

1 Answers1

0

For whatever reason, it seems an extended command is required, like so:

python3 -m pipenv install xyz

Before I was justing using

pipenv install xyz
pymat
  • 1,090
  • 1
  • 23
  • 45