pip install rdflib (as per README.md) gets OSError on Mint 18.1 · Issue #704 · RDFLib/rdflib (original) (raw)

I am setting up a new machine with Linux Mint (serena). The installation command recommended in README.md, pip install rdflib, exits with:
OSError: [Errno 13]: Permission denied: '/usr/local/lib/python2.7/dist-packages/isodate'

On forums like Stackoverflow one finds disagreement about whether running pip with sudo is perfectly fine, or a terrible idea. One common theme is that such modules should be installed in a virtual environment, but it is unclear whether to follow the advice for virtualenv, pyvenv, or venv. venv seems to be the current favorite.

If others have this problem too, README.md could perhaps provide some guidance in this regard.