{"id":1111,"hash":"9e1bc321c7591206beb246edf836e7fa7cc1b1ccc5c8dda8f3d25637be2783ce","pattern":"pkg_resources.DistributionNotFound: The &#39;pipenv==2018.10.13&#39; distribution was not found and is required by the application","full_message":"I've reinstalled pip and pipenv due to some broken package with ansible. Now, it seems like my pip dependencies are all screwed. Any suggestion or help is greatly appreciated. \n\n$ which python2\n /usr/local/bin/python2\n\n$ which python3\n/usr/local/bin/python3\n\n$ which pipenv\n/usr/local/bin/pipenv\n\nTraceback (most recent call last):\n  File \"/usr/local/Cellar/pipenv/2018.10.13/libexec/bin/pipenv\", line 6, in <module>\n    from pkg_resources import load_entry_point\n  File \"/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/__init__.py\", line 3123, in <module>\n    @_call_aside\n  File \"/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/__init__.py\", line 3107, in _call_aside\n    f(*args, **kwargs)\n  File \"/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/__init__.py\", line 3136, in _initialize_master_working_set\n    working_set = WorkingSet._build_master()\n  File \"/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/__init__.py\", line 580, in _build_master\n    return cls._build_from_requirements(__requires__)\n  File \"/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/__init__.py\", line 593, in _build_from_requirements\n    dists = ws.resolve(reqs, Environment())\n  File \"/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/__init__.py\", line 781, in resolve\n    raise DistributionNotFound(req, requirers)\npkg_resources.DistributionNotFound: The 'pipenv==2018.10.13' distribution was not found and is required by the application","ecosystem":"pypi","package_name":"python-3.x","package_version":null,"solution":"I had the same problem. You should reinstall pipenv using the same package manager you used the first time.\n\nIf the installation was done using pip, then:\n\npip uninstall pipenv\npip install pipenv\n\nIf you are using brew, then you must run the commands exposed by Andrei\n\nbrew uninstall pipenv\nbrew install pipenv\n\nTo check if pipenv installation was successfully completed, run:\npipenv --version\n\nFrom the comments, alternatively use:\n\nbrew reinstall pipenv","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/53729909/pkg-resources-distributionnotfound-the-pipenv-2018-10-13-distribution-was-no","votes":37,"created_at":"2026-04-19T04:52:22.553644+00:00","updated_at":"2026-04-19T04:52:22.553644+00:00"}