Running pipenv gives TypeError: 'module' object is not callable

Running pipenv gives TypeError: 'module' object is not callable

  • Remember a project using pipenv installation problems encountered in virtual environments

  • The cause of the above error:

    pipenv version and the version is not compatible pip

  • On MacOs system pipenv version: 2018.7.1 pip version: 19.0.1

  • Solution:

    The pip fall back to version 18.0

  • Solution 1: Replace the latest version of Pip 18.0 version in the pipenv environment
pipenv run pip install pip==18.0

Proven that this method does not solve the above problems error

  • Solution 2: 18.0 pip version rollback and will fall back to version 11.10.4 version Pipenv
pip3 install pipenv==11.10.4

Proven Method 2 perfect solution to my problem

Guess you like

Origin www.cnblogs.com/AimeeCodeWorld/p/10963732.html