Why Binder can't find any libraries?

Hi!

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:

urllib==3.7
requests==2.21.0
bs4==0.0.1
texthero==1.0.9
pandas==1.0.5
re==2.2.1
gensim==3.8.3
texthero==1.0.9
matplotlib==3.2.2
ipywidgets==7.4.2

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.