Why Binder can't find any libraries?


I have a Jupyter Notebook code that imports the following libraries:

import urllib.request as ur
import bs4 as bs
import texthero as hero
from texthero import stopwords
import pandas as pd
import re
import gensim
from gensim.summarization import keywords, summarize
import matplotlib.pyplot as plt
import ipywidgets as widgets

When trying to execute this notebook through the mybinder the builder logs says that it can’t find these libraries.
For example:

mybinder ERROR: Could not find a version that satisfies the requirement bs4==4.7.1 (from -r requirements.txt (line 1)) (from versions: 0.0.0, 0.0.1)
ERROR: No matching distribution found for bs4==4.7.1 (from -r requirements.txt (line 1))

I changed the bs4==0.0.1 and then it was OK but why the mybinder finds only the version 0.0.1?
After that the problem was with the re library but then it says that no version is available. And so on.

ERROR: Could not find a version that satisfies the requirement re==2.2.1 (from -r requirements.txt (line3)) (from versions: none)
ERROR: No matching distribution found for re==2.2.1 (from -r requirements.txt (line 3))

requirements.txt file contains the following settings:


I am using Windows 10 and anaconda custom version (py37_1). Quite a pain to get it done. How to solve the problem?

First remove version setting and try. Is there a particular package that you need a particular version for? If so, try only specifying that one.

Then once you get a set that works in binder, get the versions for each and try setting those versions if it matters to you to have all pinned.