pkg_resources.DistributionNotFound: The 'pipenv==2018.10.13' distribution was not found and is required by the application

前端 未结 2 1308
长发绾君心
长发绾君心 2021-02-01 02:41

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.

相关标签:
2条回答
  • 2021-02-01 02:50

    This should fix the problem too:

    pipenv --rm
    pipenv check
    pipenv sync
    

    I run into this problem from time to time when updating python using anaconda.

    0 讨论(0)
  • 2021-02-01 03:10

    I had the same problem. You should reinstall pipenv using the same package manager you used the first time.

    • If the installation was done using pip, then:

      pip uninstall pipenv
      pip install pipenv
      
    • If you are using brew, then you must run the commands exposed by Andrei

      brew uninstall pipenv
      brew install pipenv
      

    To check if pipenv installation was successfully completed, run: pipenv --version

    From the comments, alternatively use:

    brew reinstall pipenv
    
    0 讨论(0)
提交回复
热议问题