Pipenv trouble on MacOS “TypeError: 'module' object is not callable”

南笙酒味 提交于 2019-12-03 22:18:26

This is a bug in pipenv caused by using it alongside the newest version of pip (18.1): https://github.com/pypa/pipenv/issues/2924. You need to downgrade pip — both inside and outside the pipenv environment — to version 18.0 in order for pipenv to work.

Actual commands to do as the answer by @jwodder.

Run the following commands on the root directory.

pip install pipenv

Then

pipenv run pip install pip==18.0

Then

pipenv install

The previous answers were correct at the time, but the issue seems to have been fixed in the latest version of pipenv. Updating it fixed it for me:

pip3 install --upgrade pipenv

This allows you to run the latest versions of both pip and pipenv without problems

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!