Looking at the code of both modules on github, there is: https://github.com/RDFLib/sparqlwrapper/blob/master/requirements.txt rdflib rdflib_jsonld and https://github.com/RDFLib/rdflib/blob/master/requirements.py2.txt flake8 isodate pyparsing<=1.5.7 SPARQLWrapper (and similarly for python3; no idea why there the installation worked without sparqlwrapper).
So what can we do? Andreas