I got this error when running the command from an invalid working directory. Changing to a valid working directory fixed the problem. (Which does beg the question of what on Earth pip is doing in the working directory. Perhaps pip shouldn't be run from a directory with important files in it...)