{"id":1113,"hash":"250ebb34f8985fa84a3ebd177336828f9640242f256e03471c69733d9862265c","pattern":"Pipenv trouble on MacOS &quot;TypeError: &#39;module&#39; object is not callable&quot;","full_message":"I'm starting to try and get a working pipenv, however on my Mac, it is appears that my Python enviroment is a little screwed. I removed OS X python following this post , and installed both python2.7 and python3.7 using brew. But now when trying to use pipenv(2.7) to create a virtualenv, and pipfile, I keep getting an error about python 3.7, when locking pacakges:\n\n$ pipenv --python=/usr/local/bin/python install pynetbox ipaddress\nVirtualenv already exists!\nRemoving existing virtualenv...\nCreating a virtualenv for this project...\nPipfile: /Users/daniel/scripts/netbox/Pipfile\n\n...\n\nadding ipaddress to Pipfile's [packages]...\nPipfile.lock not found, creating...\nLocking [dev-packages] dependencies...\nLocking [packages] dependencies...\nc/lib/python3.7/site-packages/pipenv/utils.py\", line 250, in actually_resolve_deps\n    req = Requirement.from_line(dep)\n  File \"/usr/local/Cellar/pipenv/2018.7.1/libexec/lib/python3.7/site-packages/pipenv/vendor/requirementslib/models/requirements.py\", line 704, in from_line\n    line, extras = _strip_extras(line)\nTypeError: 'module' object is not callable\n/usr/local/Cellar/pipenv/2018.7.1/libexec/lib/python3.7/site-packages/pipenv/_compat.py:113: ResourceWarning: Implicitly cleaning up <TemporaryDirectory '/var/folders/pc/hlxw3whn3cl1x3h45ll2m8gw0000gs/T/pipenv-TYWa8Y-requirements'>\n  warnings.warn(warn_message, ResourceWarning)\n\nI have reinstalled PIP, and python a few times, and no luck. Any ideas would be greatly appreciated. Im sure by python is probably just in some bad state :(","ecosystem":"pypi","package_name":"macos","package_version":null,"solution":"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.","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/52706769/pipenv-trouble-on-macos-typeerror-module-object-is-not-callable","votes":23,"created_at":"2026-04-19T04:52:22.554961+00:00","updated_at":"2026-04-19T04:52:22.554961+00:00"}