Heroku Upload - Could not find a version that satisfies the requirement anaconda-client==1.4.0

后端 未结 5 1212
忘了有多久
忘了有多久 2020-12-17 17:45

I\'m trying to push a Django app onto Heroku, but am getting the following error upon running git push heroku master:

Counting objects: 80, done         


        
5条回答
  •  误落风尘
    2020-12-17 18:49

    The solution for this error is pretty simple:

    1. I hope you already have created requirements.txt file in your app folder, you ran pip > freeze command and made a commit and pushed.

    When you do that pip can also automatically add modules to the file, Pip can also install a dependency from your local codebase automatically. That can be a problem.

    1. Simply go to your requirement.txt file and look for anaconda-client==1.4.0 (or error starting with "No matching distribution found for" a module) and remove it from the file.

    2. Save the file, commit and push.

    I had the similar problem and error with conda and i took the same steps and it worked for me.

    I hope it helps some of you guys.

提交回复
热议问题