Could not find a version that satisfies the requirement pkg-resources==0.0.0

后端 未结 3 1378
青春惊慌失措
青春惊慌失措 2021-02-05 00:43

My app is deployed on heroku.

When I push my code via git push heroku master. It gives me this error

Collecting pkg-resource         


        
相关标签:
3条回答
  • 2021-02-05 01:00

    It appears Heroku CLI is using dependencies from a different local branch. If you are running:

    $ git push origin master
    

    to deploy your application on Heroku, ensure that locally you are switched to master branch.

    0 讨论(0)
  • 2021-02-05 01:15

    Remove Following line from requirements.txt.

    pkg-resources==0.0.0

    0 讨论(0)
  • 2021-02-05 01:15

    To avoid having it in requirements.txt everytime you do a freeze, remove it from your virtual environment with pip uninstall pkg-resources==0.0.0

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